Authentication & headers
API keys, required headers, origin rules and safe credential handling.
Bearer authentication
Every lookup and status request requires an API key belonging to an authorised account.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Idempotency-Key: your-unique-request-001Idempotency-Key is strongly recommended for new paint and VIN lookups. It is not required for polling an existing request ID.
Header reference
| Header | Direction | Meaning |
|---|---|---|
Authorization | Request | Bearer API key; required. |
Content-Type | Request | Use application/json. |
Idempotency-Key | Request | Stable identifier for the same logical lookup. |
X-Request-Id | Response | Lookup reference, when present. Save it for polling/support. |
Idempotency-Replayed | Response | true when a completed saved response is replayed. |
Retry-After | Response | Seconds to wait, when present; obey it before retrying. |
Do not assume every header is present on every authentication, validation, polling or replay response. Account admission is described under timing and request limits.
Browser origins
Server-to-server integration is recommended. If a request includes an Origin header, that HTTPS origin must be allowed for the API key. An empty allowed-origin list is for server requests, not arbitrary browser use. An origin allowlist does not make a browser-exposed key secret.
Key management and account pages
Create or revoke keys in the partner portal. The browser-session account, key-management, billing and administration routes are not part of the public Bearer-key lookup API. Do not send an API key to those portal routes.
Never commit keys, include them in URLs, ship them in frontend bundles or paste them into support screenshots. Rotate/revoke a disclosed key through the portal.
Authentication errors
HTTP/1.1 401 Unauthorized
Content-Type: application/json{ "detail": "Authentication required." }A 403 can indicate account/API access or a disallowed browser origin; inspect the returned detail. A 402 concerns entitlement or payment. Neither is a vehicle-data result.
