---
title: "Every inspection on record for this unit"
method: GET
path: "/v2/vin/{vin}/inspections"
tags: ["history", "vin"]
---

# Every inspection on record for this unit

`GET /v2/vin/{vin}/inspections`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/vin/{vin}/inspections`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

One item per inspection that names this VIN, most recent first: FMCSA roadside inspections (US DOT-regulated commercial vehicles, as the power unit or the towed unit) and, as that record loads, the New York DMV safety and emissions inspections. Each item names the inspection as a document ref. `expand=detail` adds the inspection as the source published it, typed by `detail.type`: `fmcsa.inspection` (state, report number, level, the unit's role and type, out-of-service and violation counts on the inspection, each violation cited where the record holds it with its code, BASIC and component, and the carrier operating the unit) or `nydmv.inspection` (programme, sequence, result, the odometer reading and every check that did not pass). Counts on the inspection, never rates: FMCSA level 3 inspects the driver only, and a rate pooled across levels or programmes is not a fact about the vehicle. No items is not evidence the vehicle was never inspected. Costs 3 credits when there is at least one item, 0 when there is none.

## Path parameters

- `vin` string, required

## Query parameters

- `expand` string
- `limit` integer
- `cursor` string

## Response `200`

Inspections, most recent first

- VinInspections
  - `vin` string, required
  - `items` object[], required: Most recent first. Empty when we have no record, which is not proof that nothing happened.
    - `id` string, required: ID of this item. It stays the same between calls.
    - `observedAt` string, required: When the event happened: YYYY-MM-DD, or YYYY when the record has only the year (New York crash reports)
    - `source` string, required: Who published the record, e.g. "gov:fmcsa"
    - `value` object, required: The event itself. Its fields depend on the endpoint.
      - `ref` string, required: ID of the inspection: "document:inspection/…"
    - `detail` union: The full record behind the item, typed by `detail.type`. Present with `expand=detail`; null when that record is no longer available.
      - object
        - `type` 'fmcsa.inspection', required: A roadside inspection on the US federal record (FMCSA)
        - `reportNumber` string, nullable, required: The inspecting state's report number
        - `state` string, nullable, required: Where the inspection was done: two-letter state or province
        - `level` integer, nullable, required: FMCSA inspection level: 1 full, 2 walk-around, 3 driver only (never examines the vehicle), 4 special, 5 terminal, 6 radioactive
        - `role` 'power' | 'towed', required: Whether this VIN was the power unit or the towed unit on the inspection
        - `unitType` string, nullable, required: The vehicle type the inspector recorded for this VIN, such as TRUCK TRACTOR or SEMI-TRAILER
        - `outOfService` object, required: Out-of-service violation counts on the inspection
          - `vehicle` integer, nullable, required: Vehicle out-of-service violations on the inspection, every unit
          - `driver` integer, nullable, required: Driver out-of-service violations on the inspection
        - `violations` object, required: Violation counts on the inspection
          - `total` integer, nullable, required: Violations cited on the inspection, across every vehicle and category
          - `vehicleMaintenance` integer, nullable, required: Of those, vehicle maintenance violations
        - `findings` object[], required: Each cited violation, one per code, where the record has them. Use `violations.total` for the count: an empty list does not mean a clean inspection.
          - `code` string, required: The cited section of the Federal Motor Carrier Safety Regulations: "393.75A3"
          - `placedOutOfService` boolean, nullable, required: This violation put the unit or driver out of service
          - `unit` string, nullable, required: Who or what the violation was cited against, as FMCSA codes it (D the driver, 1 the power unit, 2 the first towed unit, and so on)
          - `basic` string, nullable, required: The FMCSA safety category (BASIC) the code belongs to, such as Vehicle Maint. or HOS Compliance
          - `group` string, nullable, required: The part the code is about, such as Brakes, Tires or Lighting
          - `description` string, nullable, required: The cited section's text
        - `carrier` object, nullable, required: The carrier operating the vehicle at the time, as FMCSA's carrier register lists it now. Null when the DOT number is not on the register.
          - `dotNumber` integer, required: The carrier's US DOT number
          - `ref` string, required: ID of the carrier, "org:usdot/{dotNumber}"
          - `legalName` string, nullable, required: Legal name on the carrier's filing
          - `dbaName` string, nullable, required: Trade name (doing business as), when the carrier filed one
          - `domicile` object, required: Where the carrier is based: city, state and country only
            - `city` string, nullable, required: City
            - `state` string, nullable, required: State or province, two letters
            - `country` string, nullable, required: Country: "US", "CA" or "MX"
          - `operation` 'interstate' | 'intrastate-hazmat' | 'intrastate' | 'unknown', required: How the carrier classed its operation on its FMCSA filing: `interstate` (class A), `intrastate-hazmat` (B), `intrastate` (C), or `unknown`.
          - `powerUnits` integer, nullable, required: Power units (trucks, tractors, buses) the carrier declared on its latest filing
          - `links` object, required: `carrier`: the full carrier record. `vehicles`: the vehicles seen under it.
      - object
        - `type` 'nydmv.inspection', required: A safety or emissions inspection from the New York DMV
        - `kind` string, nullable, required: The inspection program, such as obd-ii, safety, low-enhanced, trailer, motorcycle or heavy-duty
        - `sequence` string, nullable, required: `initial`, `re-inspection` or `unknown`. A fail followed by a passed re-inspection means the vehicle was repaired.
        - `outcome` 'pass' | 'fail', nullable, required: The inspection's overall result
        - `odometer` object, nullable, required: The odometer the inspector read, with its unit (SMI for New York)
          - `value` integer, required: The reading, as recorded
          - `unitCode` 'SMI' | 'KMT', required: SMI statute miles, KMT kilometres, as the record states it
        - `findings` object[], required: Every check that did not pass. Empty when all passed
          - `check` 'safety' | 'obd' | 'emission-initial' | 'emission-device' | 'gas-cap', required: Which of New York's five inspection checks did not pass
          - `outcome` string, required: What the check recorded: fail, rejected, stop or unknown
  - `page` object, required: Paging. Pass `page.nextCursor` as `cursor` to get the next page.
    - `limit` integer, required: Items per page, as requested
    - `nextCursor` string, nullable, required: Pass as `cursor` for the next page; null on the last page
  - `links` object: `identity`: the decoded vehicle. One link to each other history endpoint for this VIN (`operators`, `crashes`, `inspections`, `registrations`, `brands`). `carriers`: a carrier search by this VIN, which also finds the carriers a towed trailer ran under.

## 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.
- `429`: Per-minute rate limit exceeded
- `500`: Internal error

## Changes

- **2026-12-04** `375a3b69c5c8`: 2 info
  - added `subschema #1, subschema #2` to the `items/items/detail` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `items/items/detail` response property `anyOf` list for the response status `200`
- **2026-11-24** `beb4485755b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/vin/:vin/inspections/get.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)
