Skip to content
Elara One docs
Search

Get search settings

GET
/v1/search/config

The store's public instant-search settings for one locale: autocomplete limits and timing, appearance, overlay, voice and analytics switches, and the localised placeholder and no-results text. meta.version changes on every settings save (clear any suggestion cache then). Cache it for 60 s; revalidate with If-None-Match for a bodyless 304.

Authorization

tenantKey
headerX-Tenant-Key<token>

The public store key (pk_live_…). Required on every call.

Query Parameters

locale?|

A store language code as listed in data.locales[].code (e.g. en, fr). Missing or unknown: the store default.

Lengthlength <= 35

Header Parameters

X-Client-IP?string

Optional. IP address of the shopper (one IPv4/IPv6, no port, no list). Honoured only together with a valid X-Tenant-Secret; ignored otherwise. Used for rate limits and recorded with form submissions.

X-Tenant-Secret?string

Optional here. Server secret of the store: server-to-server only, never from a browser. Enables X-Client-IP.

If-None-Match?string

Optional. The ETag of an answer you already hold. While it is still current the answer is 304 Not Modified with no body (the ETag and Cache-Control headers are repeated); otherwise a normal 200 with the new ETag.

Response Body

Success.

application/json
  1. response
data*
meta*
Example Request
curl -X GET 'https://api.elaraone.app/api/v1/search/config?locale=en' \  -H 'X-Tenant-Key: pk_live_…' \  -H 'X-Tenant-Secret: your-server-secret'
Example Response
{  "data": {    "enabled": true,    "autocomplete": {      "enabled": true,      "min_chars": 0,      "debounce_ms": 0,      "types": [        {          "type": "products",          "limit": 0        }      ],      "view_all": true,      "popular_searches": [        "string"      ]    },    "results": {      "per_page": 0,      "update_as_you_type": true    },    "appearance": {      "layout": "list",      "image": {        "enabled": true,        "size": "small"      },      "price": true,      "price_from_prefix": true,      "short_description": true,      "sku": true,      "brand": true,      "stock_badge": true,      "details_panel": true,      "highlight": true,      "colors": {        "inherit": true,        "accent": "string",        "background": "string",        "text": "string",        "muted": "string",        "highlight": "string",        "border": "string"      },      "mobile_fullscreen": {        "enabled": true,        "breakpoint": 0      }    },    "overlay": {      "enabled": true,      "opacity": 0,      "color": "string"    },    "voice": {      "enabled": true,      "lang": "string"    },    "analytics": {      "beacon": true,      "ga4": {        "enabled": true,        "impressions": true      }    },    "locale": "string",    "locales": [      {        "code": "string",        "name": "string",        "default": true      }    ],    "placeholder": "string",    "no_results_text": "string"  },  "meta": {    "version": 0,    "locale": "string"  }}