---
title: "Add documents to a pipeline run"
method: POST
path: "/v1/pipelines/{id}/documents"
tags: ["Pipelines"]
---

# Add documents to a pipeline run

`POST /v1/pipelines/{id}/documents`

## Request

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

Attaches documents to the run. They wait until `POST /v1/pipelines/{id}/start`. Documents already on the run are skipped. Every id must be a document the key's person can see; a hidden one answers 404 like a missing one, and nothing is attached. Each call is one submission group, named by the returned `run_id` (filterable on the documents and results reads). Requires the `runs:write` scope. The key's person must be an Admin of the workspace, as in the web app; in a workspace whose model configuration Talonic manages this answers 403 `insufficient_role`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `document_ids` string[], required

## Response `200`

OK

- object
  - `pipeline_id` string, uuid
  - `run_id` string, uuid
  - `added` integer
  - `skipped` integer
  - `documents` object[]
    - `id` string, uuid
    - `document_id` string, uuid
    - `status` 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.
- `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/pipelines/:id/documents/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)
