> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Get search client config

**Published**: 2026-11-30
**Category**: Search

## `GET /search/config`

**Get search client config**

Returns the host, a short-lived read-only key and the index name a
client needs to query Lynkow Search directly from the browser,
instead of sending every keystroke through `/search`. Returns 503
`INTERNAL_SERVICE_UNAVAILABLE` when search or client-side search is
not available for the site.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |


> **Notes:** Never cached (`no-store`). Rate-limit bucket: general. Fetch again
> when `apiKey` expires.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

const { host, apiKey, indexName } = await lynkow.search.getConfig()
// indexName: 'site_550e8400_e29b_41d4_a716_446655440000'
```

### Examples

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

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

### Response Example

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

---