Lookup status & polling
Read the original queued lookup without starting another lookup.
Endpoint
POST /v1/lookup-statusUse the same account/API authorisation as the original request. Polling reads the original request; it is not another lookup and is not billed.
Request body
| Field | Type | Requirement |
|---|---|---|
request_id | string | Required original request identifier, 8–128 characters. |
cURL request
curl --request POST "https://api.paintcodebyreg.com/v1/lookup-status" \
--header "Authorization: Bearer $PAINTREG_API_KEY" \
--header "Content-Type: application/json" \
--data '{"request_id":"docs-example-paint-001"}'Still pending —HTTP 202
{
"status": "queued",
"request_id": "docs-example-paint-001",
"retry_after": 3,
"billing": {
"billable": false,
"charge_pence": 0,
"currency": "GBP",
"included": false
}
}retry_after is seconds and may be fractional. Wait at least that duration (and respect any Retry-After header), then poll the same request ID. Never busy-loop or submit another paint request merely to check progress.
Completed —HTTP 200
The endpoint returns the original operation’s result, such as this paint lookup:
{
"status": "found",
"vehicle": {
"reg": "AB12CDE",
"make": "MINI",
"model": "Countryman",
"year": "2024"
},
"paint": {
"code": "C6P",
"name": "Legend Grey",
"code_status": "identified",
"aliases": [],
"name_status": "available",
"label_verified": false
},
"validation": {
"format": "valid",
"existence": "confirmed"
},
"conflicting_raw_codes": false,
"label_verified": false,
"request_id": "docs-example-paint-001",
"billing": {
"billable": true,
"charge_pence": 0,
"currency": "GBP",
"included": true
}
}Completion can also return a terminal no-result or error response; stop polling once it is no longer pending. For a VIN operation, the result shape is the VIN response, not a paint response.
Unknown lookup —HTTP 404
{ "detail": "Lookup not found." }This concerns the request reference—not vehicle existence. Do not assume an arbitrary request ID belongs to your account. Poll one request ID at a time.
Examples show key fields with illustrative identifiers and display values; additional fields may appear. They are not ready-made test vehicles, fresh lookup receipts or promises that a particular vehicle returns this result. Use your own authorised vehicle identifiers.
More response variations
See response examples for additional validation, access, entitlement, missing-vehicle, admission and temporary-error JSON.
