## Reference: Feeds

An organization's own data set, built nightly, pulled by org key

**Availability: coming soon.** The contract below is frozen. The routes are not mounted yet.

### GET /v2/feeds

The organization's feed contracts and where each one stands *Since 2026-09-30.*

Every active feed contract the key's organization holds, each with the pointer to its current run or `null` before the first run. A feed is the organization's own data set, built nightly from the Canadian vehicle record and scoped to what the organization is entitled to. Org key only: a user key or session is 403 `forbidden`. Costs 0 credits.

**Response 200** `FeedsList`: The contracts and their current runs

- `feeds` (object[])
  - `feeds[].contract` (object)
    - `feeds[].contract.dataset` (string)
    - `feeds[].contract.fieldmap` (string)
    - `feeds[].contract.format` ("csv.gz" | "csv" | "jsonl.gz" | "jsonl" | "json.gz" | "json" | "parquet" | "pipe-csv")
    - `feeds[].contract.status` ("active" | "draft" | "suspended")
    - `feeds[].contract.cadence` (object)
      - `feeds[].contract.cadence.full` (boolean)
      - `feeds[].contract.cadence.delta` (boolean)
      - `feeds[].contract.cadence.weekly_full` (boolean)
  - `feeds[].latest` (object | null)
    - `feeds[].latest.runId` (string)
    - `feeds[].latest.deliveryId`? (string)
    - `feeds[].latest.kind` ("full" | "delta")
    - `feeds[].latest.producedAt` (string (date-time))

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

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/feeds" \
  -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 feedsList = await client.v2.feeds.list();
console.log(feedsList.feeds);
```

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

```python
import os

from cardog import Cardog

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

feeds_list = client.v2.feeds.list()
print(feeds_list.feeds)
```

### GET /v2/feeds/{dataset}/latest

The current run of one dataset, with signed links to its artifacts *Since 2026-09-30.*

The manifest of the current run, the dataset declaration the rows are typed by, and one signed 24-hour link per artifact (`full`, `delta`, and `deletes` when the dataset declares deletes). Open a link exactly as printed; it needs no key and costs 0 credits. Rows are csv, RFC 4180 quoted, sorted by the first field; a VIN matches a row by its pattern (positions 1–8, `*`, 10–11, plus 12–14 when position 3 is `9`). 404 when the organization holds no active contract for the dataset or no run has been published yet. Org key only.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dataset` | string | yes | A dataset id, name@version, e.g. `vehicle-identity@1`. `GET /v2/feeds` lists the ones this organization holds |

**Response 200** `FeedLatest`: The current run, ready to read

- `contract` (object)
  - `contract.dataset` (string)
  - `contract.fieldmap` (string)
  - `contract.format` ("csv.gz" | "csv" | "jsonl.gz" | "jsonl" | "json.gz" | "json" | "parquet" | "pipe-csv")
  - `contract.status` ("active" | "draft" | "suspended")
  - `contract.cadence` (object)
    - `contract.cadence.full` (boolean)
    - `contract.cadence.delta` (boolean)
    - `contract.cadence.weekly_full` (boolean)
- `dataset` (object)
  - `dataset.id` (string)
  - `dataset.title` (string)
  - `dataset.status` ("ratified" | "draft")
  - `dataset.presets`? (object[])
    - `dataset.presets[].id` (string)
    - `dataset.presets[].title` (string)
    - `dataset.presets[].description` (string)
    - `dataset.presets[].fields` (string[])
  - `dataset.key`? (string[])
  - `dataset.ratifiedAt`? (string (date-time))
  - `dataset.semantics` (object)
    - `dataset.semantics.upsert` (boolean)
    - `dataset.semantics.delete` (boolean)
  - `dataset.fields` (object[])
    - `dataset.fields[].name` (string)
    - `dataset.fields[].type` ("string" | "integer" | "number" | "boolean" | "date" | "timestamp" | "ref")
    - `dataset.fields[].required` (boolean)
    - `dataset.fields[].joinKey`? (boolean)
    - `dataset.fields[].lifecycle`? (string)
    - `dataset.fields[].description`? (string)
    - `dataset.fields[].group`? (string)
    - `dataset.fields[].preset`? (boolean)
    - `dataset.fields[].pairedWith`? (string)
- `manifest` (object)
  - `manifest.schema` ("feed-manifest@1")
  - `manifest.contract` (string)
  - `manifest.dataset` (string)
  - `manifest.fieldmap` (string)
  - `manifest.runId` (string)
  - `manifest.deliveryId`? (string)
  - `manifest.kind` ("full" | "delta")
  - `manifest.baselineRunId`? (string)
  - `manifest.baselineDeliveryId`? (string)
  - `manifest.artifacts` (object[])
    - `manifest.artifacts[].name` (string)
    - `manifest.artifacts[].records` (integer)
    - `manifest.artifacts[].bytes` (integer)
    - `manifest.artifacts[].sha256` (string)
  - `manifest.window` (object)
    - `manifest.window.from` (string (date-time))
    - `manifest.window.to` (string (date-time))
  - `manifest.producedAt` (string (date-time))
  - `manifest.destinationPrefix` (string)
  - `manifest.columns`? (object[])
    - `manifest.columns[].name` (string)
    - `manifest.columns[].source` (string)
    - `manifest.columns[].type` ("string" | "integer" | "number" | "boolean" | "date" | "timestamp" | "ref")
    - `manifest.columns[].mapped`? (boolean)
  - `manifest.layout`? (object)
    - `manifest.layout.delimiter` ("," | "|" | "\t" | ";")
    - `manifest.layout.header` (boolean)
    - `manifest.layout.lineEnding` ("lf" | "crlf")
  - `manifest.schemaHash`? (string)
  - `manifest.counts`? (object)
    - `manifest.counts.conventions` (object)
- `artifacts` (object[])
  - `artifacts[].name` (string)
  - `artifacts[].records` (integer)
  - `artifacts[].bytes` (integer)
  - `artifacts[].sha256` (string)
  - `artifacts[].url` (string (uri))
  - `artifacts[].expiresAt` (string (date-time))
- `columns`? (object[])
  - `columns[].name` (string)
  - `columns[].source` (string)
  - `columns[].type` ("string" | "integer" | "number" | "boolean" | "date" | "timestamp" | "ref")
  - `columns[].mapped`? (boolean)
- `layout`? (object)
  - `layout.delimiter` ("," | "|" | "\t" | ";")
  - `layout.header` (boolean)
  - `layout.lineEnding` ("lf" | "crlf")

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

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/feeds/{dataset}/latest" \
  -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 feedLatest = await client.v2.feeds.latest("{dataset}");
console.log(feedLatest.contract);
```

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

```python
import os

from cardog import Cardog

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

feed_latest = client.v2.feeds.latest("{dataset}")
print(feed_latest.contract)
```

### GET /v2/feeds/artifact/{runId}/{name}

A feed artifact, through the signed link a latest read returns *(no auth required)* *Since 2026-09-30.*

The bytes behind an `artifacts[].url` from `GET /v2/feeds/{dataset}/latest`. Open that link exactly as printed. It is signed and good for 24 hours; it needs no API key or session, and it costs 0 credits. `.gz` artifacts are served as `application/gzip`, plain ones as `text/csv`, `application/x-ndjson` or `application/json` by their extension; all as attachments. An invalid or expired link is 403 `forbidden`: request the latest read again for a fresh one. 404 when no artifact is held under that run and name; 503 when it could not be fetched right now.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | string | yes | The run id (the SHA-256 of the run's full), as printed in the link |
| `name` | string | yes | The artifact name, as printed in the link |

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `t` | string | yes | Part of the link as printed |
| `d` | string | yes | Part of the link as printed |
| `exp` | integer | yes | Unix time (seconds) the link stops working: 24 hours from the read that printed it |
| `sig` | string | yes | The link's signature. Part of the link as printed; not something a caller computes |

**Response 200** `application/gzip`: The artifact as the builder wrote it

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

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/feeds/artifact/{runId}/{name}?t=%7Bt%7D&d=%7Bd%7D&exp=%7Bexp%7D&sig=%7Bsig%7D"
```

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

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

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

// The signed link comes from latest(); the run reads the file behind it.
const run = await client.v2.feeds.latest("vehicle-identity@1");
console.log(run.artifact("{name}")?.url);
for await (const row of run.rows("{name}")) {
  console.log(row);
}
```

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

```python
from cardog import Cardog

client = Cardog()

result = client.v2.feeds.artifact("{runId}", "{name}", t="{t}", d="{d}", exp="{exp}", sig="{sig}")
```

---

Previous: [Carriers](https://cardog.app/docs/reference/carriers.md) (API reference)
Next: [Listings](https://cardog.app/docs/reference/listings.md) (API reference)
