Getting started

Errors

Last updated:

The v2 error envelope and a correction recipe for every well-known code.

Every non-2xx response from a /v2/* route has the same shape, the error envelope. code is a value you can dispatch on, hint says what to do next, and suggestions carries nearest-ref candidates so a mistyped ref can be corrected in one step.

Example

5 keys
"response": {
"code": "unknown_entity_refs",
"message": "Unknown entity refs: make:teslla",
"hint": "Resolve free text to refs at GET /v2/entities/resolve?q=teslla",
"refs": [
0: "make:teslla"
],
"suggestions": [
0: {3 items}
]
}

Unknown refs are named, not guessed

A well-formed ref that the registry does not recognize always returns a 400 that names it. Suggestions are advisory and are never applied for you. You will not get a fuzzy-matched result or an empty set for a bad ref.

The envelope

FieldTypeRequiredDescription
codestringyesError code to branch on. Well-known codes: invalid_request, invalid_filters, invalid_ref, invalid_vin, invalid_nano_refs, version_sunset, unknown_entity_refs, unknown_entity_domain, unknown_spec_attributes, not_found, conflict, unauthorized, forbidden, rate_limited, insufficient_credits, internal_error, unavailable. New codes may be added; fall back to message and hint for codes you do not know.
messagestringyesReadable description naming the offending input
hintstringnoWhat to do next, e.g. "Resolve free text at GET /v2/entities/resolve"
docs_urlstringnoURL of a Markdown page explaining this error code and how to fix it
detailsobject[]noField-level validation failures, one per failing path
details[].pathstringnoThe failing field, e.g. "filters.makes.0"
details[].messagestringyes
refsstring[]noThe offending refs or attribute ids, verbatim. Set for unknown_entity_refs, unknown_spec_attributes, and invalid_nano_refs.
suggestionsobject[]noNearest-ref candidates per offending input. Advisory only; the API does not apply them.
suggestions[].invalidstringyesThe offending input, verbatim
suggestions[].nearestobject[]yesBest candidates, most likely first. Advisory only; the API does not apply them.
suggestions[].nearest[].refstringyesA known entity ref, e.g. "make:tesla"
suggestions[].nearest[].namestringnoDisplay name, e.g. "Tesla"
suggestions[].resolvestringnoServer-relative URL of the resolve call that turns this input into refs, e.g. "/v2/entities/resolve?domain=make&q=teslla"
linksobjectnoRelated resources, each a server-relative path. invalid_vin carries {"feedback": "/v2/feedback"}: if you know what the vehicle is, report it there.
requestIdstringnoThis request's id, the same value as the X-Request-Id response header and the id recorded on any credit debit for the request. Quote it when you report a failure or dispute a charge. Set on every error the API serves.

The code set is open. New codes are added over time and are never a breaking change. Dispatch on the codes you know and fall back on message and hint.

Error codes

CodeMeaning
invalid_requestThe request body or parameters did not match the operation's schema.
invalid_filtersOne or more filters used invalid ref syntax, scalar values, or ranges.
invalid_refA path or query parameter did not match the {domain}:{key} ref grammar.
invalid_vinThe supplied VIN failed the platform's length or character rules.
invalid_nano_refsA nano filter did not match the VIN-derived nano key grammar.
version_sunsetThe Cardog-Version header named a dated version that is past its support window.
unknown_entity_refsThe refs were well formed, but the entity registry did not recognize them.
unknown_entity_domainThe domain was well formed, but the entity registry does not serve it.
unknown_spec_attributesA spec.* filter named an attribute that is not in the current catalog.
not_foundThe requested route or resource does not exist.
conflictThe record changed between the read your request was based on and the write.
unauthorizedThe request did not carry a valid API key, session, or internal credential.
forbiddenThe credential is valid but does not grant access to the requested route group.
rate_limitedThe credential exhausted the request limit described by the response.
insufficient_creditsA hard-stop plan has no allowance or prepaid pack balance left.
internal_errorThe server failed while processing a request that the caller cannot repair.
unavailableA required platform dependency was temporarily unavailable.

Open a code for what happened, the next action, and a working corrected request. Error envelopes link to the page's markdown twin so an agent can fetch the recovery recipe without parsing HTML.

HTTP statuses

StatusWhen
400Invalid request — grammar failure or unknown-but-well-formed refs, NAMED in refs/details, with nearest-ref suggestions where computable. Never a fuzzy fallback.
401No valid credential (API key, session, or internal token)
402Insufficient credits (free-tier hard stop; paid tiers bill overage instead)
403The link is invalid or expired (forbidden); request GET /v2/vin/{vin}/window-sticker again for a fresh one
404Resource not found
409The record changed since it was read (conflict); read it again
413The body is larger than the route accepts (invalid_request, with the limit in hint)
429Per-minute rate limit exceeded
500Internal error
503Temporarily unavailable (unavailable); retry with backoff