> For the complete documentation index, see [llms.txt](https://docs.boldminded.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boldminded.com/dexter/docs-statamic/api-searching.md).

# API Searching

Set `publicSearch` to `true` to expose `/!/dexter/search` for client-side search interfaces. It accepts GET and POST.

```js
const response = await fetch('/!/dexter/search', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        index: 'content',
        query: 'small birds',
        limit: 6,
        params: {
            hybrid: { embedder: 'fullText' }
        }
    }),
})

const { data, meta } = await response.json()
```

{% hint style="warning" %}
**The endpoint is unauthenticated.** Anything in a configured index becomes publicly readable through it. Enable it only once you are satisfied the indexed fields are safe to serve to anyone — user records in particular are rarely appropriate. It is off by default.
{% endhint %}

Only indexes named in your config are reachable, the result limit is capped, and the response carries indexed documents and nothing else — no configuration, no credentials, no provider diagnostics. Provider error text is never returned, because it can name internal hosts and index structure.
