Developers
Build search that understands the whole request
One REST API for search, autosuggest, browse, voice and recommendations. JSON in, ranked products out. No SDK required, no re-platform, and nothing to retrain.
curl -X POST 'https://api.<your-domain>/api/v1/search' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"query": "hydrating lipstick for dry lips",
"client_id": "YOUR_CLIENT_ID",
"facets": ["brand", "finish"]
}'The API
Five things your storefront can call
Search
One endpoint for keyword and intent-led queries. Routing is automatic.
See reference →Autosuggest
Brands, categories, products and queries in four parallel buckets.
See reference →Browse
Paginated PLP slices for shop-all, brand, category and curated pages.
See reference →Recommendations
Similar products, routine building, cart completion.
See reference →Quickstart
Your first search in three steps
- 01
Get your keys
You'll be issued an API key and a
client_idat onboarding. The key authenticates the request; theclient_idscopes it to your catalogue. Every tenant sees only its own products. - 02
Send the catalogue
We enrich and index it. Endpoints answer real queries within the first hour, and full deployment completes in under four.
- 03
Call the API
Show the curl from the hero, then the same call as
fetch— both are on the right.
Keep your API key server-side. Proxy search calls through your own backend rather than exposing the key in browser code.
curl -X POST 'https://api.<your-domain>/api/v1/search' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"query": "hydrating lipstick for dry lips",
"client_id": "YOUR_CLIENT_ID",
"facets": ["brand", "finish"]
}'const res = await fetch("https://api.<your-domain>/api/v1/search", {
method: "POST",
headers: {
"x-api-key": process.env.AURIX_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
query: "hydrating lipstick for dry lips",
client_id: process.env.AURIX_CLIENT_ID,
hits_per_page: 20,
}),
});
const data = await res.json();Core concept
One endpoint. Three answers.
Aurix inspects the query and picks the branch. Your frontend reads routed_to and renders accordingly.
A PLP slice, plus browse_match for labels and URLs
A fast lexical grid. Under 20ms.
A ranked grid with a statement above it
| routed_to | When it fires | What you render |
|---|---|---|
browse | The query exactly matches a brand or category name | A PLP slice, plus browse_match for labels and URLs |
keyword | Short queries — three words or fewer | A fast lexical grid. Under 20ms. |
contextual | Longer, intent-led queries | A ranked grid with a statement above it |
- You can override it. Send
mode: "keyword"or"contextual"to power a search-mode toggle in your UI. - Except for browse. An exact brand or category match always wins, because that entity is the best answer either way.
- query_class tells you the domain that was detected on contextual queries, so you can vary the layout. See how contextual search ranks results.
Working with results
Built the way you'd expect
Request the facet fields you'll actually render; send the same strings back to refine. Categorical values within one field are OR'd, and different fields are AND'd.
{
"query": "matte lipstick",
"client_id": "YOUR_CLIENT_ID",
"facets": ["brand", "formulation_standards"],
"selected_filters": {
"brand": { "Acme": true, "Beta": true },
"formulation_standards": { "Paraben Free": true }
}
}Counts use disjunctive behaviour, so a shopper can always change a facet they've already applied. Numeric fields take { "min": 100, "max": 1500 } with inclusive bounds.
Voice
Shoppers speak. You get a query.
Post a recording, get back a transcript in the language it was spoken, a romanised version to display in the search bar, and an English query to send to /search. 22 global and Indian languages, plus global and mixed-language queries — read about voice search.
{
"transcription": {
"transcript": "मुझे मैट लिपस्टिक चाहिए",
"romanized": "mujhe matte lipstick chahiye",
"query": "I want a matte lipstick",
"language_code": "hi-IN",
"language_name": "Hindi"
}
}- Show romanized in the search bar, falling back to
transcriptwhen it's null. - Send query to /search — the catalogue and pipeline are English.
- Pass response_language through so your result copy comes back in the language the shopper spoke. Product names, brands and facet values are never translated.
- One call if you prefer:
POST /search/voice-fulldoes both and returns results directly.
Accepted formats
Send the raw bytes as the request body with a Content-Type header. Aurix detects the language and returns the transcript, a romanised form for display, and the English query your storefront forwards to the search endpoint.
Recommendations
Beyond the results grid
Similar products
Send one SKU, get scored alternatives back.
Build a routine
Send one SKU, get an ordered routine around it. Conflicting actives are scheduled apart rather than stacked.
Complete the cart
Send what's in the basket, get back what it's missing.
Every response carries a search_id; quote it if you need to raise anything with us.
Reference
Every endpoint
| Method | Path | Purpose |
|---|---|---|
| POST | /api/v1/search | Keyword, contextual and browse-alias search |
| POST | /api/v1/enhanced-search | Search plus reasoning steps, routine, filter controls and follow-up queries |
| POST | /api/v1/browse | Paginated PLP slice for shop-all, brand or category |
| GET | /api/v1/suggest | Autosuggest across brands, categories, products and queries |
| POST | /api/v1/search/voice | Audio in, a search query out |
| POST | /api/v1/search/voice-full | Audio in, search results out |
| POST | /api/v1/recommendations/similar-products | Products similar to one SKU |
| POST | /api/v1/recommendations/build-routine | A routine built around one SKU |
| POST | /api/v1/recommendations/complete-cart | What a basket is missing |
| GET | /health | Liveness check |
Errors
Predictable failures
| Status | Meaning |
|---|---|
| 400 | Malformed request |
| 401 | Missing or unknown API key |
| 403 | Key revoked, expired, or tenant mismatch |
| 404 | Unknown client_id |
| 422 | Schema validation, with a detail array naming the field |
| 500 | Internal error |
- Errors return
{ "detail": "<reason>" }. - Unknown fields fail loudly with a 422 naming the field, so a typo never gets silently dropped.
- Transient 5xx responses are safe to retry with a short backoff. Include the
search_idwhen reporting one.
Stability
We won't break your build
Served under /api/v1. Backwards-incompatible changes ship under a new major version.
Additive changes land on v1 — new optional request fields, new non-required response fields. Parse defensively and ignore unknown keys.
Performance: short keyword queries return in under 20ms; contextual queries are sub-second.
Send us the catalogue. We'll do the rest.
Endpoints and Merch Studio live within the first hour. Full deployment in under four.
