---
title: "Import a Spec"
method: POST
path: "/v1/specs/import"
tags: ["Specs"]
---

# Import a Spec

`POST /v1/specs/import`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/specs/import`
- Auth: HTTP bearer

Creates a Spec from a Spec JSON export (`spec_json`, the file the Spec
editor exports) or from an existing schema (`schema_id`). Send exactly
one. `issues` lists anything that could not be carried over as-is.
Importing a Spec JSON export needs the workspace Admin role; importing
a schema follows the Spec editor's edit rule. Requires `specs:write`.

## Request body

- object
  - `spec_json` object: A Spec JSON export.
  - `schema_id` string, uuid
  - `overwrite_all` boolean: Overwrite every reference table in the export that already exists.
  - `overwrite` string[]: Reference tables (id or name) that may be overwritten.

## Response `201`

The imported Spec.

- object
  - `spec_id` string, uuid
  - `issues` object[]
    - `severity` string
    - `path` string
    - `message` string
  - `links` object

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/specs/import/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)
