---
title: "One site with its contracts and checks"
method: GET
path: "/v1/contract-check/sites/{key}"
tags: ["Contract Check"]
---

# One site with its contracts and checks

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

## Request

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

The site's tree counts, its contracts, the results of the roles check (check 3), the groups of sibling contracts sharing a standard text (check 2), its findings, the decisions on its contracts and the settings in force. An unknown key, or a workspace without settings, answers with `site` null and empty lists.

## Path parameters

- `key` string, required

## Response `200`

The site.

- object
  - `site` ContractCheckSite, nullable
    - `site_key` string
    - `site_name` string, nullable
    - `contracts` integer
    - `with_documents` integer
    - `counts` ContractCheckRoleCounts
      - `purchase` integer
      - `sale` integer
      - `intercompany` integer
      - `unassigned` integer
    - `active_counts` ContractCheckRoleCounts
      - `purchase` integer
      - `sale` integer
      - `intercompany` integer
      - `unassigned` integer
  - `contracts` ContractCheckContract[]
    - `id` string
    - `crm_key` string: The CRM record id in lower case.
    - `site_key` string
    - `site_name` string, nullable
    - `role` 'purchase' | 'sale' | 'intercompany' | 'unassigned'
    - `type` string, nullable
    - `legacy_type` string, nullable
    - `name` string, nullable
    - `number` string, nullable
    - `partner` string, nullable
    - `status` string, nullable
    - `active` boolean
    - `start` string, date, nullable
    - `end` string, date, nullable
    - `product_row_id` string, nullable: Null when Talonic holds no documents for the contract (CRM only).
    - `document_ids` string[]
    - `doc_names` object: Readable name per document id.
    - `anchor_document_id` string, uuid, nullable: The main document.
    - `attrs` ContractCheckAttr[]
      - `key` string
      - `label` string
      - `type` string
      - `current` string, nullable: What Talonic holds: the value of the latest document that states one.
      - `crm` string, nullable: What the CRM holds.
      - `doc_values` object[]: Each document's own value, main document first.
        - `document_id` string, uuid
        - `value` string, nullable
        - `quoted` boolean: A passage of the document backs the value.
      - `source_document_id` string, uuid, nullable: The document the Talonic value comes from.
      - `source_pipeline_document_id` string, uuid, nullable
    - `text_group` string, nullable: The group of sibling contracts sharing a standard text; null when none.
    - `text_similarity` number, nullable
  - `role_checks` ContractCheckRoleCheck[]
    - `id` 'sale-purchase' | 'purchase-without-sale' | 'intercompany-without-sale' | 'start-gap' | 'end-coverage' | 'purchase-overrun' | 'intercompany-end'
    - `state` 'ok' | 'bad' | 'warn' | 'info' | 'na'
    - `params` object
    - `contract_ids` string[]
  - `groups` ContractCheckTextGroup[]
    - `key` string
    - `site_key` string
    - `role` 'purchase' | 'sale' | 'intercompany' | 'unassigned'
    - `type` string, nullable
    - `contracts` ContractCheckContract[]
      - `id` string
      - `crm_key` string: The CRM record id in lower case.
      - `site_key` string
      - `site_name` string, nullable
      - `role` 'purchase' | 'sale' | 'intercompany' | 'unassigned'
      - `type` string, nullable
      - `legacy_type` string, nullable
      - `name` string, nullable
      - `number` string, nullable
      - `partner` string, nullable
      - `status` string, nullable
      - `active` boolean
      - `start` string, date, nullable
      - `end` string, date, nullable
      - `product_row_id` string, nullable: Null when Talonic holds no documents for the contract (CRM only).
      - `document_ids` string[]
      - `doc_names` object: Readable name per document id.
      - `anchor_document_id` string, uuid, nullable: The main document.
      - `attrs` ContractCheckAttr[]
        - `key` string
        - `label` string
        - `type` string
        - `current` string, nullable: What Talonic holds: the value of the latest document that states one.
        - `crm` string, nullable: What the CRM holds.
        - `doc_values` object[]: Each document's own value, main document first.
          - `document_id` string, uuid
          - `value` string, nullable
          - `quoted` boolean: A passage of the document backs the value.
        - `source_document_id` string, uuid, nullable: The document the Talonic value comes from.
        - `source_pipeline_document_id` string, uuid, nullable
      - `text_group` string, nullable: The group of sibling contracts sharing a standard text; null when none.
      - `text_similarity` number, nullable
    - `similarity` number
    - `out_of_sync` string[]: Fields whose CRM values differ between the siblings.
    - `expected` string[]
    - `same_file_ids` string[]: Contracts that look like one file filed twice.
  - `findings` ContractCheckFinding[]
    - `id` string
    - `mode` 1 | 2 | 3: The check.
    - `severity` 'bad' | 'warn' | 'info'
    - `site_key` string
    - `code` string: open_attributes, declined_values, same_file, crm_out_of_sync, crm_only, talonic_only, or a roles-check id.
    - `contract_ids` string[]
    - `role` 'purchase' | 'sale' | 'intercompany' | 'unassigned'
    - `type` string, nullable
    - `params` object
  - `decisions` ContractCheckDecision[]
    - `id` string, uuid
    - `crm_key` string
    - `field_key` string
    - `verdict` 'crm_ok' | 'crm_update' | 'not_maintained'
    - `value` string, nullable
    - `status` 'active' | 'suggested' | 'resolved': `suggested` waits for a person with the right to decide; `resolved` was closed later.
    - `resolved_by` 'sync' | 'drift' | 'accepted', nullable: `sync` the CRM took the value; `drift` both sides moved away from it; `accepted` a suggestion was accepted.
    - `by` string
    - `at` string, date-time
    - `reason` string, nullable
  - `settings` ContractCheckSettings, nullable: Where each tree property sits in the CRM table, the required attributes per type, and the thresholds.
    - `tree` object, required
      - `key` string, required: The CRM record id column.
      - `site` object, required
        - `column` string, required
        - `pattern` string, nullable: A regular expression whose first capture group cuts the site key out of the value.
      - `site_name` string, nullable
      - `role` object, required
        - `column` string, required
        - `values` object: CRM value to role.
      - `type` string, nullable
      - `legacy_type` string, nullable
      - `active` object, nullable
        - `column` string
        - `values` string[]
      - `status` string, nullable
      - `start` string, nullable
      - `end` string, nullable
      - `partner` string[]: Columns; the first non-empty one wins.
      - `name` string, nullable
      - `number` string, nullable
    - `required` object: Required attributes (field keys) per contract type.
    - `varies` string[]: Fields that differ between sibling contracts by nature.
    - `declined` string[]: The CRM's own words for a field left empty on purpose; such a field is no gap.
    - `thresholds` object
      - `start_gap_years` number
      - `similarity` number: How alike two main documents must be to count as sharing a standard text.
      - `end_coverage` boolean
      - `date_rule_types` string[]
      - `purchase_overrun_years` number

## 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.

## Changes

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

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