# Get search client config

**Publié le** : 2026-05-12
**Catégorie** : Search

## `GET /search/config`

**Get search client config**

Return the short-lived Lynkow Search tenant token + host + index
name a client needs to call the Lynkow Search engine directly. Use
when you want instant-search UX without round-tripping every
keystroke through `/public/{siteId}/search`.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |


> **Notes:** Cache: `Cache-Control: private, max-age=60`. Rate-limit bucket:
> general. The `apiKey` is a short-lived public key scoped to the
> site's index, with read-only permissions; do not rotate it
> client-side; just refetch this endpoint when the key expires.

### Examples

```curl
curl "https://api.lynkow.com/public/{siteId}/search/config"
```

```javascript
const res = await fetch(`https://api.lynkow.com/public/${siteId}/search/config`)
const { data } = await res.json()
// data.host + data.apiKey + data.indexName feed a Lynkow Search client.
```

### Response Example

```json
"{\n  \"data\": {\n    \"host\": \"https://search.lynkow.com\",\n    \"apiKey\": \"lks_pk_short_lived_token_abcdef0123456789\",\n    \"indexName\": \"site_c3bc8a0a_7820_4945_b174_5c9328b98719\"\n  }\n}\n"
```

---