## Reference: Specs

The attribute catalog + canonical spec sheets

**Availability: live** on `https://api.cardog.app`.

### GET /v2/specs/catalog

The canonical attribute dictionary (219 attributes in 19 sections, SPEC_VERSION 2) *Since 2026-07-30.*

**Response 200** `SpecCatalog`: Sections, attribute ids, names, types, units — every attribute names its section

- `specVersion` (integer): SPEC_VERSION of the canonical catalog (2)
- `sections` (object): Section id → definition. Sheets group their values by these ids
- `attributes` (object): Keyed by SpecAttributeId — the SAME ids `spec` filters and sheets use
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 401, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/specs/catalog" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const specCatalog = await client.v2.specs.catalog();
console.log(specCatalog.specVersion);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

spec_catalog = client.v2.specs.catalog()
print(spec_catalog.spec_version)
```

### GET /v2/specs/{ref}

Spec sheet at the model-year (or trim) grain *Since 2026-07-30.*

`refs` is the identity card (the same keys as `GET /v2/vin/{vin}`). Values are grouped by catalog section, each `{ value, unit?, stated? }`: every number is metric (horsepower and inch sizes excepted) and states its unit; `stated` is the source's own number when it published another unit. The root is the overlap of everything under the model year: a decode field (`refs`, engine columns) is served only when every decoded build states the same value, and a catalogue value only when every trim behind the sheet states it; ask for the trim grain with `?trim=`, or the build grain. `markets.US` and `markets.CA` hold what each market publishes: `pricing.msrp` (every price by trim and style, cheapest first, in the market's `currency`) and `colors` (name, rgb, hex). Markets are never merged.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | A model-year ref. Slashes in refs must be URL-encoded (%2F). |

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `trim` | string | no | Refine to the trim grain |

**Response 200** `SpecSheet`: The sheet: sections, markets

- `ref` (string): The requested model-year ref
- `grain` ("model-year" | "trim")
- `trim`? (string | null): Set when grain=trim
- `year` (integer | null)
- `make` (string | null): Display name
- `model` (string | null): Display name
- `refs` (object): The identity card's refs, the same keys as `GET /v2/vin/{vin}`: the join keys. An attribute served here is not repeated in `sections`
  - `refs.make` (string | null): Make entity ref, e.g. "make:tesla"
  - `refs.model` (string | null): Model entity ref, e.g. "model:tesla/model-y"
  - `refs.modelYear` (string): The model-year ref, always set on a sheet, e.g. "model-year:toyota/rav4/2021"; `links.modelYearSheet` is its sheet
  - `refs.bodyStyle` (string | null)
  - `refs.fuelType` (string | null)
  - `refs.driveType` (string | null)
  - `refs.transmission` (string | null)
  - `refs.electrificationLevel` (string | null)
  - `refs.vehicleType` (string | null)
  - `refs.gvwr`? (string | null)
  - `refs.country` (string | null): Ref of the country the vehicle was assembled in (the plant country), e.g. "country:canada", "country:japan", "country:united-states-usa". One of the ISO 3166-1 countries in the country domain (GET /v2/entities?domain=country). Null when the decode states no plant country.
  - `refs.bodyCab`? (string | null)
  - `refs.bedType`? (string | null)
  - `refs.series`? (string | null)
  - `refs.fuelTypeSecondary`? (string | null)
  - `refs.trailerBodyType`? (string | null)
  - `refs.trailerType`? (string | null)
- `sections` (object)
- `markets` (object): Per-market pricing and colors; a market with nothing published is absent
  - `markets.US`? (object)
    - `markets.US.currency` ("USD" | "CAD")
    - `markets.US.pricing`? (object)
      - `markets.US.pricing.msrp` (object[]): Every published price, cheapest first
    - `markets.US.colors`? (object): Every color offered in this market across the trims behind the sheet, sorted by name
      - `markets.US.colors.colorsExterior`? (object[])
      - `markets.US.colors.colorsInterior`? (object[])
  - `markets.CA`? (object)
    - `markets.CA.currency` ("USD" | "CAD")
    - `markets.CA.pricing`? (object)
      - `markets.CA.pricing.msrp` (object[]): Every published price, cheapest first
    - `markets.CA.colors`? (object): Every color offered in this market across the trims behind the sheet, sorted by name
      - `markets.CA.colors.colorsExterior`? (object[])
      - `markets.CA.colors.colorsInterior`? (object[])
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/specs/model-year:honda%2Fcr-v%2F2026" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const specSheet = await client.v2.specs.sheet("model-year:honda/cr-v/2026");
console.log(specSheet.ref);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

spec_sheet = client.v2.specs.sheet("model-year:honda/cr-v/2026")
print(spec_sheet.ref)
```

### GET /v2/specs/nano:{code}

Spec sheet for ONE build code *Since 2026-09-12.*

The same sheet for one build. The VIN's build answers `refs` and identity; the trims that share this build fill the rest, each value one every trim states. Where the build states a value, the build's value is served. Values are metric with their unit, as on the model-year grain. The build's model year is `refs.modelYear`, always set on this grain, and `links.modelYearSheet` is the path to its sheet. Several trims can share a VIN pattern — `markets` prices all of them, never a pick. `?trim=` is not accepted on this grain (400).

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | yes | The build code: the 11-character (or 14 for a small-volume WMI) VIN pattern, star at position 9 omitted or kept. |

**Response 200** `SpecSheetBuild`: The build's sheet: sections, markets

- `ref` (string): The requested build-code ref, e.g. "nano:2T3RWRFVMW"
- `grain` ("nano")
- `year` (integer | null)
- `make` (string | null): Display name
- `model` (string | null): Display name
- `refs` (object): The identity card's refs, the same keys as `GET /v2/vin/{vin}`: the join keys. An attribute served here is not repeated in `sections`
  - `refs.make` (string | null): Make entity ref, e.g. "make:tesla"
  - `refs.model` (string | null): Model entity ref, e.g. "model:tesla/model-y"
  - `refs.modelYear` (string): The model-year ref, always set on a sheet, e.g. "model-year:toyota/rav4/2021"; `links.modelYearSheet` is its sheet
  - `refs.bodyStyle` (string | null)
  - `refs.fuelType` (string | null)
  - `refs.driveType` (string | null)
  - `refs.transmission` (string | null)
  - `refs.electrificationLevel` (string | null)
  - `refs.vehicleType` (string | null)
  - `refs.gvwr`? (string | null)
  - `refs.country` (string | null): Ref of the country the vehicle was assembled in (the plant country), e.g. "country:canada", "country:japan", "country:united-states-usa". One of the ISO 3166-1 countries in the country domain (GET /v2/entities?domain=country). Null when the decode states no plant country.
  - `refs.bodyCab`? (string | null)
  - `refs.bedType`? (string | null)
  - `refs.series`? (string | null)
  - `refs.fuelTypeSecondary`? (string | null)
  - `refs.trailerBodyType`? (string | null)
  - `refs.trailerType`? (string | null)
- `sections` (object)
- `markets` (object): Per-market pricing and colors; a market with nothing published is absent
  - `markets.US`? (object)
    - `markets.US.currency` ("USD" | "CAD")
    - `markets.US.pricing`? (object)
      - `markets.US.pricing.msrp` (object[]): Every published price, cheapest first
    - `markets.US.colors`? (object): Every color offered in this market across the trims behind the sheet, sorted by name
      - `markets.US.colors.colorsExterior`? (object[])
      - `markets.US.colors.colorsInterior`? (object[])
  - `markets.CA`? (object)
    - `markets.CA.currency` ("USD" | "CAD")
    - `markets.CA.pricing`? (object)
      - `markets.CA.pricing.msrp` (object[]): Every published price, cheapest first
    - `markets.CA.colors`? (object): Every color offered in this market across the trims behind the sheet, sorted by name
      - `markets.CA.colors.colorsExterior`? (object[])
      - `markets.CA.colors.colorsInterior`? (object[])
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/specs/nano:{code}" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const specSheetBuild = await client.v2.specs.sheetByBuild("{code}");
console.log(specSheetBuild.ref);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

spec_sheet_build = client.v2.specs.sheet_by_build("{code}")
print(spec_sheet_build.ref)
```

---

Previous: [Entities](https://cardog.app/docs/reference/entities.md) (API reference)
Next: [Parts](https://cardog.app/docs/reference/parts.md) (API reference)
