---
title: "Read a chassis number from a photo"
method: POST
path: "/v2/chassis/image"
tags: ["chassis"]
---

# Read a chassis number from a photo

`POST /v2/chassis/image`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/chassis/image`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Send a photo of the caution plate (the riveted plate under the hood or in the door jamb) or of the number stamped on the frame. You get back the chassis number, and `links.chassis` is the `GET /v2/chassis/{chassis}` call for it.

When a character is in doubt, `read.confidence` is `low` and `readings` lists the possible numbers, most likely first, for a person to confirm. A photo with no legible number is still a 200: `read` is null and `refusal.reason` says why (`unreadable`; `vin` when the plate shows a 17-character VIN; `unsplit` when the number was read but not where its hyphen goes).

Costs 2 credits when a number is read; a refusal costs 0. Answers are never cached.

## Headers

- `Idempotency-Key` string

## Request body

- ChassisImageRequest
  - `image` string, required: The photo as base64 (a data: URL prefix is accepted). JPEG, PNG or WebP, 10 MB at most, of the caution plate or the frame stamp.

## Response `200`

The number read, or why none was

- ChassisImage
  - `read` object, nullable, required: The number read off the plate. Null when none was read; `refusal` then says why. Costs 2 credits when set.
    - `chassis` string, required: The chassis number read, as CODE-SERIAL with the hyphen. Look it up with `GET /v2/chassis/{chassis}`; `links.chassis` is that path.
    - `typeApproval` string, nullable, required: The type approval (型式) printed on the plate, such as DBA-ZRR80W. Compare it with `candidates[].typeApprovals` from the chassis lookup. Null when the photo shows none or it is not legible.
    - `confidence` 'high' | 'low', required: `low` when a character was in doubt: show `readings` and have a person confirm one before you record it.
    - `readings` object[], required: The possible readings of the number, most likely first. One entry when `confidence` is `high`.
      - `chassis` string, required: The chassis number as CODE-SERIAL, uppercase, hyphen included.
      - `code` string, required: The model code before the hyphen.
      - `serial` string, required: The serial after the hyphen.
  - `refusal` object, nullable, required: Why no number was read. Null when `read` is set. A refusal costs 0 credits.
    - `reason` 'unreadable' | 'vin' | 'unsplit', required: `unreadable`: no chassis number is legible; retake the photo. `vin`: the plate shows a 17-character VIN, given in `seen`; decode it with `GET /v2/vin/{vin}`. `unsplit`: the number was read but not where its hyphen goes; have a person type it with the hyphen, then call `GET /v2/chassis/{chassis}`.
    - `seen` string, nullable, required: What was read, if anything: the VIN for `vin`, the number without its hyphen for `unsplit`. Null for `unreadable`.
    - `detail` string, required: The reason in a sentence, safe to show a user.
  - `links` object: Paths to related endpoints, ready to request, e.g. {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

## Other responses

- `400`: The request is invalid. The error response names each bad value in `refs` or `details` and, where it can, suggests the nearest valid ref in `suggestions`. We never fall back to a fuzzy match.
- `401`: No valid API key or session
- `402`: Out of credits. Only the free plan stops here; paid plans are billed for overage instead.
- `413`: The body is larger than the route accepts (`invalid_request`, with the limit in `hint`)
- `429`: Per-minute rate limit exceeded
- `500`: Internal error
- `503`: Temporarily unavailable (`unavailable`); retry with backoff

## Changes

- **2026-11-19** `877cd66e4732`: 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2026-11-05** `afdaf52aa22f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/chassis/image/post.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
