---
title: "Unread contract documents, grouped by contract key"
method: GET
path: "/v1/contracts/import/candidates"
tags: ["Contracts"]
---

# Unread contract documents, grouped by contract key

`GET /v1/contracts/import/candidates`

## Request

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

Documents that look like contract documents (by filename or inferred type), have extracted text and have not been read for terms yet, grouped by the key their filename carries (at most 2000 documents). Invoices are excluded. Keys Price Baseline already models come first, then keyed groups, then the largest groups.

## Query parameters

- `q` string

## Response `200`

Candidate groups.

- object
  - `data` ContractsImportGroup[]
    - `contract_key` string, nullable: Null for documents whose filename carries no key.
    - `in_price_baseline` boolean
    - `documents` object[]
      - `document_id` string, uuid
      - `filename` string
      - `created_at` string, date-time
      - `import` object, nullable: The document's queue entry, or null when it was never queued.
        - `status` 'pending' | 'running' | 'done' | 'failed'
        - `error` string, nullable

## Changes

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

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