---
title: "Check a Spec"
method: POST
path: "/v1/specs/{id}/check"
tags: ["Specs"]
---

# Check a Spec

`POST /v1/specs/{id}/check`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/specs/{id}/check`
- Auth: HTTP bearer

Checks a Spec document without saving anything: the draft, or `doc`
when you send one (check an edit before you save it). `valid` is false
when there is at least one error; a draft with errors cannot be
published. Warnings do not block. Requires `specs:read`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `doc` object

## Response `200`

Check result.

- object
  - `spec_id` string, uuid
  - `valid` boolean
  - `errors` SpecCheckFinding[]
    - `severity` 'error' | 'warning' | 'info'
    - `code` string
    - `message` string
    - `path` string, nullable
    - `field_id` string, nullable
    - `stage_id` string, nullable
  - `warnings` SpecCheckFinding[]
    - `severity` 'error' | 'warning' | 'info'
    - `code` string
    - `message` string
    - `path` string, nullable
    - `field_id` string, nullable
    - `stage_id` string, nullable

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `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/:id/check/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)
