---
title: "Legacy alias: track an enrichment run (use GET /enrichment-runs/{runId})"
method: GET
path: "/batches/{batchId}"
tags: ["Workspace"]
deprecated: true
---

# Legacy alias: track an enrichment run (use GET /enrichment-runs/{runId})

`GET /batches/{batchId}`

> **Deprecated.**

Deprecated alias for `GET /enrichment-runs/{runId}` — identical response.

## Response `200`

The enrichment-run detail.

- EnrichmentRunDetail — A tracked batch of column-over-row work on a table (upserts, file ingests). `id` is canonical; `batchId` is the kept legacy alias (identical value).
  - `object` 'enrichment_run', required
  - `id` string, uuid, required
  - `batchId` string, uuid, required — Legacy alias of `id` — kept for pre-restructure consumers.
  - `tableId` string, uuid, required
  - `type` string, required — The run's work type (e.g. `upsert`).
  - `status` string, required
  - `createdAt` string, date-time, required
  - `completedAt` string, date-time, nullable, required
  - `rowCount` integer, required — Rows this run processed. For `upsert` runs this is the per-row outcome ledger length (one entry per input row).
  - `enrichments` object, required
    - `total` integer, required
    - `completed` integer, required
    - `pending` integer, required
    - `failed` integer, required
  - `creditsUsed` integer, required — Settled credit cost. `0` until the run reaches a terminal status.
  - `outcomes` object[] — Present only on `upsert`-type runs — the per-row outcome ledger.
    - `inputIndex` integer, required
    - `rowId` string, uuid, nullable, required
    - `outcome` 'inserted' | 'updated' | 'skipped', required
  - `outcomeCounts` object — Present only on `upsert`-type runs.
    - `inserted` integer, required
    - `updated` integer, required
    - `skipped` integer, required

## Other responses

- `404` — BATCH_NOT_FOUND.

---

[API](https://skmtc.net/origami/apis/origami-agent-api.md) · [All operations](https://skmtc.net/origami/apis/origami-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/origami/origami-agent-api/revisions/8083ad7fe081/schema)
