---
title: "Queue every candidate document"
method: POST
path: "/v1/contracts/import/all"
tags: ["Contracts"]
---

# Queue every candidate document

`POST /v1/contracts/import/all`

## Request

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

Queues every candidate document (see `GET /v1/contracts/import/candidates`), optionally narrowed by filename, by contract keys or to keys Price Baseline models, and capped by `limit` so a first batch can be checked before the rest. With `dry_run` it counts and queues nothing.

## Request body

- object
  - `query` string: Only documents whose filename contains this.
  - `contract_keys` string[]: Only these contract keys, as the candidates list prints them.
  - `only_priced` boolean: Only keys Price Baseline already models.
  - `dry_run` boolean: Count what would be queued and queue nothing.
  - `limit` integer: Queue at most this many documents.

## Response `201`

The selection and what was queued.

- object
  - `dry_run` boolean
  - `contracts` integer: Candidate groups (contract keys) after the filters.
  - `documents` integer: Documents selected after the filters and `limit`.
  - `queued` integer: Always 0 with `dry_run`.
  - `skipped` integer

## Other responses

- `400`: The request is invalid.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

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