---
title: "One site"
method: GET
path: "/v1/contract-desk/sites/{key}"
tags: ["Contract Desk"]
---

# One site

`GET /v1/contract-desk/sites/{key}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/contract-desk/sites/{key}`
- Auth: HTTP bearer

The site with its contracts ordered by role, type, next notice deadline and name (at most the configured number; `truncated` says more exist) and the items placed on the site itself (site and text findings), by urgency. Requires scope `read`.

## Path parameters

- `key` string, required

## Response `200`

The site.

- object
  - `site` ContractDeskSite
    - `site_key` string: The site number. Where no system of record gives sites (`capabilities.mode` `contracts`), the key of a partner (`partner:` and the partner's name without legal form, case or punctuation), or `-` for contracts without a partner.
    - `site_name` string, nullable
    - `contracts` integer
    - `with_documents` integer: Contracts whose documents Talonic holds; where the Contracts app gives the contracts, those with at least one filed document.
    - `roles` object
      - `sale` integer
      - `purchase` integer
      - `intercompany` integer
      - `unassigned` integer
    - `active_roles` object
      - `sale` integer
      - `purchase` integer
      - `intercompany` integer
    - `values` object: Required attributes of the site's contracts, those in order, those open (the counts of the last build), and the open ones by state counted when the site is read.
      - `required` integer
      - `ok` integer
      - `open` integer
      - `states` ContractDeskValueStates: The open values of a tree line by state, counted when the line is read from its open value items: the document and the CRM differ (`mismatch`), only the document states a value (`crm_missing`), only the CRM does (`doc_missing`), neither does (`both_missing`), the CRM field is left empty on purpose while a suggestion waits (`declined`). A decided value leaves them at once, while the line's `open` (the last build's count) keeps it until the build that follows the decision: right after a build the states sum to `open`, in between the sum is lower by the values decided since.
        - `mismatch` integer
        - `crm_missing` integer
        - `doc_missing` integer
        - `both_missing` integer
        - `declined` integer
    - `todo` object
      - `now` integer
      - `open` integer
      - `undated_steps` integer: Process steps without a due date of the site's contracts; not in `open`.
    - `next_notice` string, date, nullable: Earliest open notice deadline of the site's contracts; a past day when a notice deadline nobody handled is overdue.
    - `bad` boolean: The site holds a critical item.
    - `findings` ContractDeskSiteFinding[]: The site's open site findings (check 3 of Contract Check), `bad` before `warn`, then by code; empty when it has none. Counted when the site is read.
      - `code` string: The finding's code, e.g. `sale-purchase`, `purchase-without-sale`, `start-gap`, `end-coverage`.
      - `severity` 'bad' | 'warn': `bad` for a critical finding.
      - `count` integer: Open findings of that code on the site.
  - `contracts` ContractDeskContractLine[]
    - `crm_key` string: The CRM record id, lower case.
    - `site_key` string
    - `role` string: sale, purchase, intercompany or unassigned.
    - `type` string, nullable
    - `name` string, nullable
    - `number` string, nullable
    - `partner` string, nullable
    - `partner_key` string, nullable: The partner, trimmed and lower case; what `GET /v1/contract-desk/contracts?partner=` matches.
    - `active` boolean
    - `start_date` string, date, nullable
    - `end_date` string, date, nullable
    - `has_documents` boolean: Talonic holds the contract's documents (where the Contracts app gives the contracts: at least one document is filed under it); a site's `with_documents` counts these lines.
    - `document_count` integer
    - `documents` object[]
      - `id` string, uuid
      - `name` string: The document's file name; its id where none is known.
    - `values` object: Required attributes, those in order, those open (the counts of the last build), and the open ones by state counted when the line is read.
      - `required` integer
      - `ok` integer
      - `open` integer
      - `suggested` integer: Open values with a decision suggested and waiting.
      - `states` ContractDeskValueStates: The open values of a tree line by state, counted when the line is read from its open value items: the document and the CRM differ (`mismatch`), only the document states a value (`crm_missing`), only the CRM does (`doc_missing`), neither does (`both_missing`), the CRM field is left empty on purpose while a suggestion waits (`declined`). A decided value leaves them at once, while the line's `open` (the last build's count) keeps it until the build that follows the decision: right after a build the states sum to `open`, in between the sum is lower by the values decided since.
        - `mismatch` integer
        - `crm_missing` integer
        - `doc_missing` integer
        - `both_missing` integer
        - `declined` integer
    - `todo` object
      - `now` integer
      - `open` integer
      - `undated_steps` integer: Process steps without a due date; not in `open`.
    - `next_notice` string, date, nullable: The contract's earliest open notice deadline; a past day when a notice deadline nobody handled is overdue.
    - `link` 'linked' | 'shared' | 'not_in_contracts' | 'no_documents': How the contract relates to the Contracts app.
    - `contract_id` string, uuid, nullable: The Contracts contract the link points at.
  - `items` ContractDeskItem[]
    - `id` string, uuid
    - `kind` 'value' | 'documents_missing' | 'site_check' | 'text_check' | 'deadline' | 'step' | 'issue'
    - `source` 'contract_check' | 'contracts'
    - `crm_key` string, nullable
    - `site_key` string, nullable
    - `team` string, nullable: The team the item belongs to: a process step's department; else the team the workspace's Setup (`GET /v1/contract-desk/settings`) chooses for the value's attribute, then for the item's kind; else the team the configuration names for the kind (`contract_management` by default).
    - `due_date` string, date, nullable: An unhandled key date of a kind the configuration keeps past its day (`overdue_kinds`, notice deadlines by default) stays an item with its past date for up to `overdue_days` (90); a passed key date of any other kind is no item.
    - `critical` boolean
    - `urgency` 'now' | 'month' | 'behind' | 'later' | 'none': On the day of the read: now (critical, or due within the configured days; a passed key date included), month (within `month_days`, 30), behind (a process step whose planned day has passed), later, none (undated).
    - `group_key` string
    - `payload` object: Per kind. value: field_key, label, state, suggested. site_check and text_check: code, severity, params, contract_ids (left out on a `todo/items` page), role, type. deadline: key_date_id, kind, label, contract_id, contract_key. step: process_id, rule_id, rule_no, process_kind, contract_id, contract_key (contract_id and contract_key name the Contracts contract). issue: code, detail, document_ids, contract_id, contract_key. Any kind: info true when the item is information only (no app in the workspace can decide it; section info, no actions).
    - `first_seen_at` string, date-time
  - `truncated` boolean

## Other responses

- `400`: The request is invalid.
- `403`: The key lacks the `read` scope, or its person may not see every document the index names.
- `404`: The workspace has not added the app or is not in the pilot, or its index holds no such site.

## Changes

- **2026-12-04** `88d2070c4878`: 1 warning
  - added the new `issue` enum value to the `items/items/kind` response property for the response status `200`
- **2026-11-30** `2d33873df1fd`: 1 warning
  - added the new `behind` enum value to the `items/items/urgency` response property for the response status `200`
- **2026-11-19** `27b968c6df42`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/contract-desk/sites/:key/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)
