autopicDocs

Errors

Errors come back with an HTTP status and a two-field JSON body: a human-readable message and a stable code.

Response 400
{
  "error": "VIN must be exactly 17 characters",
  "code": "decode_failed"
}

The message may change; branch on the code in your code.

Error codes

StatusCodeCauseWhat to do
400invalid_requestThe body is not valid JSON, or a parameter is missing.Fix the request.
400decode_failedThe VIN cannot be decoded: wrong length, or forbidden characters (I, O, Q).Check the VIN as entered.
400batch_too_largeMore than 100 VINs in a batch.Split the batch.
400wmi_lookup_failedThe manufacturer code (WMI) is not valid.Send the first 3 characters of the VIN.
401api_key_requiredThe endpoint requires a key and the request has none.Add the Authorization header.
401invalid_api_keyThe key is unknown or has been revoked.Check the key, or create a new one.
404not_foundThe requested object (make, model…) does not exist.Check the ID.
429rate_limitedToo many requests in the current minute.Wait for the Retry-After delay.
429quota_exceededThe monthly volume is used up.Wait for next month, or switch plans.
500internal_errorSomething went wrong on our side.Retry; if it persists, contact us.
503unavailableThe service cannot verify the key right now.Retry after a few seconds.