Errors
Errors come back with an HTTP status and a two-field JSON body: a human-readable message and a stable code.
{
"error": "VIN must be exactly 17 characters",
"code": "decode_failed"
}The message may change; branch on the code in your code.
Error codes
| Status | Code | Cause | What to do |
|---|---|---|---|
400 | invalid_request | The body is not valid JSON, or a parameter is missing. | Fix the request. |
400 | decode_failed | The VIN cannot be decoded: wrong length, or forbidden characters (I, O, Q). | Check the VIN as entered. |
400 | batch_too_large | More than 100 VINs in a batch. | Split the batch. |
400 | wmi_lookup_failed | The manufacturer code (WMI) is not valid. | Send the first 3 characters of the VIN. |
401 | api_key_required | The endpoint requires a key and the request has none. | Add the Authorization header. |
401 | invalid_api_key | The key is unknown or has been revoked. | Check the key, or create a new one. |
404 | not_found | The requested object (make, model…) does not exist. | Check the ID. |
429 | rate_limited | Too many requests in the current minute. | Wait for the Retry-After delay. |
429 | quota_exceeded | The monthly volume is used up. | Wait for next month, or switch plans. |
500 | internal_error | Something went wrong on our side. | Retry; if it persists, contact us. |
503 | unavailable | The service cannot verify the key right now. | Retry after a few seconds. |