---
title: "Import a Spec's reference tables"
method: POST
path: "/v1/matching/reference-data/import-bundle"
tags: ["Reference Data"]
---

# Import a Spec's reference tables

`POST /v1/matching/reference-data/import-bundle`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/matching/reference-data/import-bundle`
- Auth: HTTP bearer

Creates the reference tables a portable Spec carries (its `reference_data`
tables) in this workspace, so its lookups resolve. Returns one outcome per
table and a map from each table's old id to its new reference table id for
rebinding the Spec. `dryRun` reports without writing. A table that already
exists is reported as a conflict and skipped unless named in `overwrite`
or `overwriteAll` is set.

Requires the `specs:write` scope, and the person behind the credential
must hold the workspace `workspace` permission. Send `Idempotency-Key` to
make a retry return the first response instead of importing again.

## Headers

- `Idempotency-Key` string

## Request body

- ReferenceBundleImportRequest
  - `tables` object[], required
    - `id` string: The table's id in the Spec
    - `name` string, required
    - `columns` object[]
      - `name` string, required
      - `type` string
      - `nullable` boolean
    - `rows` object[], required
    - `row_count` integer
    - `truncated` boolean: A truncated table is skipped
  - `dryRun` boolean
  - `overwriteAll` boolean
  - `overwrite` string[]

## Response `201`

Per-table outcome of the import.

- ReferenceBundleImportResult
  - `outcomes` object[], required
    - `source_id` string, nullable
    - `name` string
    - `target_id` string, uuid, nullable: The new or replaced reference table; null for a conflict or a skip.
    - `status` 'create' | 'overwrite' | 'conflict' | 'skipped_truncated' | 'skipped_empty'
    - `conflict_kind` 'reimport' | 'name_collision'
    - `existing` object
      - `id` string, uuid
      - `name` string
      - `row_count` integer
    - `applied` boolean
    - `rows_written` integer
  - `id_map` object, required

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `409`: The request conflicts with the current resource state.
- `422`: The document could not be processed.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/matching/reference-data/import-bundle/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
