Quickstart
The WestIQ Platform API is server-to-server. In this quickstart you exchange your partner credential for a bearer token, verify the API is reachable, and run your first natural-language catalog search — four steps, all copy-pasteable.
All examples use the staging base URL:
Get partner credentials
Your WestIQ partner manager issues an OAuth 2.0 client_id and
client_secret, plus the token endpoint URL for your integration. The
credential is already bound to your airline on the WestIQ side — there is
no airline identifier for you to configure or send.
Request an access token
Exchange your client credentials for a short-lived bearer access token at your token endpoint (a Cognito hosted domain; the exact URL is in your onboarding pack):
The response contains the token and its lifetime:
Cache the token and reuse it until it expires — do not request a new token per API call.
Make your first search
Send the token as a bearer credential and search the catalog in natural language:
Notice what you did NOT send: any airline identifier. Your credential
already carries it. The response’s parsed.filters.airlineId field shows
the airline your call was resolved to — server-side, from your credential,
never from the request.
Never commit client_secret or tokens to source control. Store them in a
secrets manager and inject them at runtime.
The examples above run against the staging environment
(api.staging.westiq.ai). Full request and response schemas for every
endpoint live in the API Reference, generated from the platform’s
OpenAPI document — the same document the live API serves at
GET /openapi/v1.json.
Next steps
- Authentication & tenancy — how credentials map to airlines, and the failures you can hit.
- Search — request limits, how queries are parsed, scoring, and coverage reporting.
- Behavioral events — batching passenger
interaction signals into
POST /v1/events.