contract 2026-10-05
Reference

Errors & limits

Status codes, the error body shape, and which failures are worth retrying.

Every error, from every endpoint except the business tools (/api/v1/carvalue/*, /api/v1/vehiclescan/*, which answer in the tool’s own shape), has one body: success: false, a sanitized human-readable error, a stable machine-readable code, and the same contract_version, request_id and server_time a successful response carries. Branch on code — the error text is written for people and may be reworded. An unknown path or method under /api/v1/ answers in this shape too. Quote request_id when reporting a failure — it is the only handle support has on a specific call.

json
{
  "success": false,
  "error": "API key is not authorized for this route",
  "code": "scope_not_granted",
  "contract_version": "2026-10-05",
  "request_id": "0f2c1b9e-4a77-4c31-9a0b-6d2f0a1c8e55",
  "server_time": "2026-10-05T09:41:02Z"
}
The same six fields on every error.
Statuscode values
400invalid_request, unknown_parameter, invalid_cursor, invalid_idempotency_key
401invalid_api_key, api_key_expired
403api_key_revoked, api_key_suspended, ip_not_allowed, origin_not_allowed, scope_not_granted, access_not_started, forbidden
404 / 405not_found, method_not_allowed
409conflict, idempotency_in_progress
413 / 422payload_too_large, idempotency_key_reused, unprocessable
429rate_limited, quota_exceeded, too_many_failed_attempts
501not_available_in_sandbox
5xxinternal_error, upstream_error, upstream_timeout, service_unavailable, auth_unavailable

New codes may be added, so handle one you do not recognise by its HTTP status:

StatusMeaningRetry?
400Invalid filter, pagination, source, unknown query parameter, or malformed body.No — fix the request.
401Missing, invalid, or expired API key.No — repeated failures trigger a lockout.
403Revoked key, or scope, IP, or origin denial.No.
404Source-aware resource not found.No.
409Ambiguous legacy identifier.No — disambiguate with site.
413Request body over 50 MB. Only reachable on the POST routes.No.
429Brute-force lockout (five failed authentications from your IP) or a rate/quota limit.Yes — after Retry-After on a rate or quota limit. A lockout sends none: fix the key and wait 15 minutes.
500Unexpected server error (message is sanitized).Yes — with backoff.
503A dependency is unavailable, a search or facet query exceeded its safety timeout, a dataset has not been built yet, or authentication itself could not be verified (Authentication is temporarily unavailable — retry it; it is not a verdict on your key).Yes — with backoff.
json
{
  "success": false,
  "error": "Unknown site 'ebay'. Valid sites: auto1, japan, copart, encar, kbchachacha, openlane, schadeautos",
  "code": "invalid_request"
}
Trimmed. A 400 names the offending value and lists what would have been accepted.

Unknown query parameters are rejected on /api/v1 and, for now, ignored on the unprefixed paths. Each endpoint understands a fixed set of parameters. On /api/v1 one outside that set is a 400 (code: unknown_parameter) naming the offender and listing the valid ones; on the unprefixed paths it is on its way to becoming one. Send only what an endpoint documents, and treat a filter that seems to have no effect as a misspelling rather than an unsupported feature. While it is still ignored, the response says so in an X-API-Warning header naming the parameter — log that header in development and a typo shows up at once.

Safe retries on creates

A POST that timed out may or may not have created its row. Send an Idempotency-Key header — any unique string up to 255 characters — on POST /api/v1/watches, POST /api/v1/shipments and POST /api/v1/vehiclescan/requests, and repeat the request with the same key: within 24 hours you get the first response back, marked Idempotent-Replayed: true, and nothing is created twice. The same key with a different body is a 422; a repeat that arrives while the first is still running is a 409.

Calling from a browser

Cross-origin requests may send X-API-Key, Authorization, If-None-Match, X-Request-ID and Idempotency-Key, and page JavaScript can read ETag, X-Request-ID, the rate-limit headers, X-Cache, X-Live-Price, X-Details-Fetch and X-Data-Source. Use a key with an origin allowlist — see Authentication & scopes.

Failures that are not errors

Three responses look like something went wrong and have not. Handling them as errors is the most common integration bug:

  • A missing live_price block. It means the car is served at its cycle price, which for most listings is the only price there is. See Live prices.
  • details_pending: true. The upstream fetch is still running. Poll, do not retry in a tight loop.
  • An empty inspection_reports or images array. Most listings publish no reports, and a gallery that has not been vaulted yet reports its shortfall as pending.

Safety timeouts on deep filtered searches

/api/v1/vehicles and /api/v1/list-vehicles have no offset cap. A very deep filtered search is answered from a compact index where it can be; where it cannot, it is subject to the safety timeout and may come back 503 asking you to narrow it. Catalog, top-offers and classifieds listings are capped at offset 5000 — a deeper page is a 400 naming the limit. Narrow the filter rather than retrying the same URL.