---
title: "Pin a sample document"
method: POST
path: "/v1/specs/{id}/samples"
tags: ["Specs"]
---

# Pin a sample document

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

## Request

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

Pins a document you can see as a sample, used by `POST /v1/specs/{id}/test`
when you send no `document_ids`. Pinning the first sample can make the
Spec live; if that reports issues you get a 422 and can retry with
`acknowledge_issues`. Requires `specs:write`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `document_id` string, uuid, required
  - `label` string
  - `acknowledge_issues` boolean

## Response `201`

The pinned sample.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `422`: Issues to acknowledge.

## Changes

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

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