---
title: "One page of sites"
method: GET
path: "/v1/contract-desk/sites"
tags: ["Contract Desk"]
---

# One page of sites

`GET /v1/contract-desk/sites`

## Request

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

The workspace's sites with their counts. Every word of `q` (at most 200 characters, matched as literal text without regard to case) must occur in the site's number or name, or in the CRM key, number, name, partner or type of one of its contracts; each word may match another contract. `filter=now` keeps the sites with something to do now, most first; `filter=nodoc` keeps the sites with contracts lacking documents; otherwise sites are ordered by site key. `total` counts the sites under the filter; `counts` gives all three chips for the same `q`. Requires scope `read`.

## Query parameters

- `q` string
- `filter` 'all' | 'now' | 'nodoc'
- `page` integer
- `limit` integer

## Response `200`

The page.

- object
  - `data` 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.
  - `total` integer
  - `page` integer
  - `limit` integer
  - `counts` object
    - `all` integer
    - `now` integer: Sites with something to do now.
    - `nodoc` integer: Sites with contracts lacking documents.

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

## Changes

- **2026-11-19** `27b968c6df42`: 1 info
  - endpoint added

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