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.

REST + JSONAny platformCORS enabled
bash
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

POST /search

Search

One endpoint for keyword and intent-led queries. Routing is automatic.

See reference →
GET /suggest

Autosuggest

Brands, categories, products and queries in four parallel buckets.

See reference →
POST /browse

Browse

Paginated PLP slices for shop-all, brand, category and curated pages.

See reference →
POST /search/voice

Voice

Audio in, a search query out, in the shopper's own language.

See reference →
POST /recommendations/*

Recommendations

Similar products, routine building, cart completion.

See reference →

Quickstart

Your first search in three steps

  1. 01

    Get your keys

    You'll be issued an API key and a client_id at onboarding. The key authenticates the request; the client_id scopes it to your catalogue. Every tenant sees only its own products.

  2. 02

    Send the catalogue

    We enrich and index it. Endpoints answer real queries within the first hour, and full deployment completes in under four.

  3. 03

    Call the API

    Show the curl from the hero, then the same call as fetch — both are on the right.

  4. Keep your API key server-side. Proxy search calls through your own backend rather than exposing the key in browser code.

bash
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"]
  }'
js
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.

routed_toWhen it firesWhat you render
browseThe query exactly matches a brand or category nameA PLP slice, plus browse_match for labels and URLs
keywordShort queries — three words or fewerA fast lexical grid. Under 20ms.
contextualLonger, intent-led queriesA 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.

json
{
  "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.

1Record
2Transcribe
3Search
json
{
  "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 transcript when 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-full does both and returns results directly.

Accepted formats

wavmp3webmoggm4a

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

POST /recommendations/similar-products

Similar products

Send one SKU, get scored alternatives back.

POST /recommendations/build-routine

Build a routine

Send one SKU, get an ordered routine around it. Conflicting actives are scheduled apart rather than stacked.

POST /recommendations/complete-cart

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

MethodPathPurpose
POST/api/v1/searchKeyword, contextual and browse-alias search
POST/api/v1/enhanced-searchSearch plus reasoning steps, routine, filter controls and follow-up queries
POST/api/v1/browsePaginated PLP slice for shop-all, brand or category
GET/api/v1/suggestAutosuggest across brands, categories, products and queries
POST/api/v1/search/voiceAudio in, a search query out
POST/api/v1/search/voice-fullAudio in, search results out
POST/api/v1/recommendations/similar-productsProducts similar to one SKU
POST/api/v1/recommendations/build-routineA routine built around one SKU
POST/api/v1/recommendations/complete-cartWhat a basket is missing
GET/healthLiveness check

Errors

Predictable failures

StatusMeaning
400Malformed request
401Missing or unknown API key
403Key revoked, expired, or tenant mismatch
404Unknown client_id
422Schema validation, with a detail array naming the field
500Internal 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_id when 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.