Skip to main content

Contract Desk Endpoint Reference

Reference for 17 Contract Desk endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Shows a workspace's contracts as one tree per site (site, direction, contract type, contract, documents) with, on every line, what is on file, what is in order and what is to do. The desk reads a pre-counted index that a background build fills from the Contract Check and Contracts apps every few minutes (POST /v1/contract-desk/rebuild starts one at once); every number on a line is the sum of the lines below it. Items (values to look at, missing documents, site and text findings, notice deadlines and other key dates, process steps) carry an urgency worked out on the day of the read. The Dashboard, the To do list and the Data quality page count over every item, also those of Contracts contracts that no CRM contract links to; the To do list groups items into batches (one section, team, kind and group). The index holds workspace-wide counts: a key whose person may not see every document the index names gets 403. Every endpoint, reads included, needs the key's person to be an active member of the workspace right now; the reads need the export permission, which every role holds by default (403 otherwise). These endpoints belong to the Contract Desk app (catalog slug contract-desk), which answers only in pilot workspaces; they return 404 in a workspace that has not added the app or is not in the pilot. GET /v1/apps lists a workspace's apps by slug.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

GET/v1/contract-desk/status

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/status' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/status", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The index state.

{
  "built": true,
  "building": true,
  "built_at": "2026-01-15T09:30:00Z",
  "started_at": "2026-01-15T09:30:00Z",
  "build_ms": 1,
  "error": "string",
  "totals": {
    "sites": 1,
    "contracts": 1,
    "active_contracts": 1,
    "with_documents": 1,
    "required_values": 1,
    "ok_values": 1,
    "open_values": 1,
    "items_now": 1,
    "items_open": 1,
    "undated_steps": 1,
    "by_kind": {},
    "sections": {
      "now": 1,
      "month": 1,
      "later": 1,
      "none": 1,
      "info": 1
    }
  },
  "link": {
    "linked": 1,
    "shared": 1,
    "not_in_contracts": 1,
    "no_documents": 1,
    "contracts_app_total": 1,
    "contracts_app_unplaced": 1,
    "unplaced_items": 1
  },
  "revision": 1,
  "requested_at": "2026-01-15T09:30:00Z",
  "now": 1
}
  • 400 — The request is invalid.
  • 403 — The key lacks the read scope, or its person may not see every document the index names (details.reason restricted).
  • 404 — The workspace has not added the app, or is not in the pilot (details.reason pilot).
POST/v1/contract-desk/rebuild

curl

curl -X POST 'https://api.talonic.com/v1/contract-desk/rebuild' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/rebuild", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 201 — The request was taken; `started` says whether it started a build.

{
  "started": true
}
  • 400 — The request is invalid.
  • 403 — The key lacks the write scope or the run permission, 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.
  • 409 — The app is switched off in this workspace.
GET/v1/contract-desk/sites

Query parameters

qstringSearch words, each of which must match; longer than 200 characters or holding a control character (U+0000 to U+001F) answers 400.
filterstring ("all", "now", "nodoc") Default: all
pageinteger Default: 1
limitintegerDefaults to the configured page size and is cut to the configured maximum.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/sites' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/sites", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The page.

{
  "data": [
    {
      "site_key": "string",
      "site_name": "string",
      "contracts": 1,
      "with_documents": 1,
      "roles": {
        "sale": 1,
        "purchase": 1,
        "intercompany": 1,
        "unassigned": 1
      },
      "active_roles": {
        "sale": 1,
        "purchase": 1,
        "intercompany": 1
      },
      "values": {
        "required": 1,
        "ok": 1,
        "open": 1,
        "states": {}
      },
      "todo": {
        "now": 1,
        "open": 1,
        "undated_steps": 1
      },
      "next_notice": "2026-01-15",
      "bad": true,
      "findings": [
        {}
      ]
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 1,
  "counts": {
    "all": 1,
    "now": 1,
    "nodoc": 1
  }
}
  • 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.
GET/v1/contract-desk/sites/{key}

Path parameters

key*stringThe site key (the site number). A control character (U+0000 to U+001F) answers 400.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/sites/key' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/sites/key", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The site.

{
  "site": {
    "site_key": "string",
    "site_name": "string",
    "contracts": 1,
    "with_documents": 1,
    "roles": {
      "sale": 1,
      "purchase": 1,
      "intercompany": 1,
      "unassigned": 1
    },
    "active_roles": {
      "sale": 1,
      "purchase": 1,
      "intercompany": 1
    },
    "values": {
      "required": 1,
      "ok": 1,
      "open": 1,
      "states": {
        "mismatch": 1,
        "crm_missing": 1,
        "doc_missing": 1,
        "both_missing": 1,
        "declined": 1
      }
    },
    "todo": {
      "now": 1,
      "open": 1,
      "undated_steps": 1
    },
    "next_notice": "2026-01-15",
    "bad": true,
    "findings": [
      {
        "code": "string",
        "severity": "bad",
        "count": 1
      }
    ]
  },
  "contracts": [
    {
      "crm_key": "string",
      "site_key": "string",
      "role": "string",
      "type": "string",
      "name": "string",
      "number": "string",
      "partner": "string",
      "partner_key": "string",
      "active": true,
      "start_date": "2026-01-15",
      "end_date": "2026-01-15",
      "has_documents": true,
      "document_count": 1,
      "documents": [
        {}
      ]
    }
  ],
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "value",
      "source": "contract_check",
      "crm_key": "string",
      "site_key": "string",
      "team": "string",
      "due_date": "2026-01-15",
      "critical": true,
      "urgency": "now",
      "group_key": "string",
      "payload": {},
      "first_seen_at": "2026-01-15T09:30:00Z"
    }
  ],
  "truncated": true
}
  • 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.
GET/v1/contract-desk/contracts

Query parameters

qstringSearch words, each of which must match; longer than 200 characters or holding a control character (U+0000 to U+001F) answers 400.
partnerstringA partner_key as the lines carry it. A control character (U+0000 to U+001F) answers 400.
sitestringA site key. A control character (U+0000 to U+001F) answers 400.
pageinteger Default: 1
limitintegerDefaults to the configured page size and is cut to the configured maximum.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/contracts' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/contracts", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The page.

{
  "data": [
    {
      "crm_key": "string",
      "site_key": "string",
      "role": "string",
      "type": "string",
      "name": "string",
      "number": "string",
      "partner": "string",
      "partner_key": "string",
      "active": true,
      "start_date": "2026-01-15",
      "end_date": "2026-01-15",
      "has_documents": true,
      "document_count": 1,
      "documents": [
        {}
      ]
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 1
}
  • 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.
GET/v1/contract-desk/contracts/{id}

Path parameters

id*stringThe CRM record id (crm_key), compared lower-cased. A control character (U+0000 to U+001F) answers 400.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/contracts/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/contracts/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The contract.

{
  "contract": {
    "crm_key": "string",
    "site_key": "string",
    "role": "string",
    "type": "string",
    "name": "string",
    "number": "string",
    "partner": "string",
    "partner_key": "string",
    "active": true,
    "start_date": "2026-01-15",
    "end_date": "2026-01-15",
    "has_documents": true,
    "document_count": 1,
    "documents": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string"
      }
    ]
  },
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "value",
      "source": "contract_check",
      "crm_key": "string",
      "site_key": "string",
      "team": "string",
      "due_date": "2026-01-15",
      "critical": true,
      "urgency": "now",
      "group_key": "string",
      "payload": {},
      "first_seen_at": "2026-01-15T09:30:00Z"
    }
  ],
  "values": [
    {
      "key": "string",
      "label": "string",
      "state": "match",
      "document_value": "string",
      "crm_value": "string",
      "needs_look": true,
      "decision": {
        "verdict": "crm_ok",
        "status": "active"
      },
      "item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ],
  "required": [
    "string"
  ]
}
  • 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 contract.
GET/v1/contract-desk/dashboard

Query parameters

teamstringA team as teams lists it; all teams when left out or empty. A control character (U+0000 to U+001F) answers 400.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/dashboard' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/dashboard", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The Dashboard.

{
  "team": "string",
  "teams": [
    "string"
  ],
  "tiles": {
    "now": 1,
    "month": 1,
    "contracts": 1,
    "with_documents": 1,
    "required_values": 1,
    "ok_values": 1
  },
  "by_team": [
    {
      "team": "string",
      "now": 1,
      "month": 1,
      "later": 1,
      "none": 1
    }
  ],
  "weeks": [
    {
      "week_start": "2026-01-15",
      "count": 1
    }
  ],
  "top_sites": [
    {
      "site_key": "string",
      "site_name": "string",
      "contracts": 1,
      "with_documents": 1,
      "roles": {
        "sale": 1,
        "purchase": 1,
        "intercompany": 1,
        "unassigned": 1
      },
      "active_roles": {
        "sale": 1,
        "purchase": 1,
        "intercompany": 1
      },
      "values": {
        "required": 1,
        "ok": 1,
        "open": 1,
        "states": {}
      },
      "todo": {
        "now": 1,
        "open": 1,
        "undated_steps": 1
      },
      "next_notice": "2026-01-15",
      "bad": true,
      "findings": [
        {}
      ]
    }
  ],
  "start": {
    "key": "string",
    "section": "now",
    "kind": "value",
    "group_key": "string",
    "team": "string",
    "count": 1,
    "contracts": 1,
    "sites": 1,
    "overdue": 1,
    "earliest_due": "2026-01-15",
    "next_due": "2026-01-15",
    "label": {
      "field_key": "string",
      "field_label": "string",
      "state": "string",
      "code": "string",
      "date_kind": "string",
      "rule_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "rule_no": 1
    }
  },
  "history": {
    "since": "2026-01-15",
    "week_ago": {
      "day": "2026-01-15",
      "now": 1,
      "month": 1,
      "with_documents": 1,
      "ok_values": 1,
      "required_values": 1
    },
    "trend": [
      {
        "day": "2026-01-15",
        "ok_values": 1,
        "required_values": 1
      }
    ]
  },
  "new_items": {}
}
  • 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.
GET/v1/contract-desk/quality

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/quality' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/quality", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The Data quality figures.

{
  "values": {
    "required": 1,
    "ok": 1,
    "open": 1,
    "mismatch": 1,
    "crm_missing": 1,
    "doc_missing": 1,
    "both_missing": 1,
    "declined": 1
  },
  "attributes": [
    {
      "field_key": "string",
      "label": "string",
      "required": 1,
      "ok": 1,
      "open": 1,
      "mismatch": 1,
      "crm_missing": 1,
      "doc_missing": 1,
      "both_missing": 1,
      "declined": 1,
      "batches": {
        "mismatch": "string",
        "crm_missing": "string",
        "doc_missing": "string",
        "both_missing": "string",
        "declined": "string"
      }
    }
  ],
  "attributes_total": 1,
  "documents": {
    "contracts": 1,
    "with_documents": 1,
    "active_without_documents": 1
  },
  "link": {}
}
  • 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.
GET/v1/contract-desk/todo

Query parameters

teamstringA team as teams lists it; all teams when left out or empty. A control character (U+0000 to U+001F) answers 400.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/todo' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/todo", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The To do list.

{
  "team": "string",
  "teams": [
    "string"
  ],
  "sections": [
    {
      "section": "now",
      "total": 1,
      "batches": [
        {}
      ],
      "more": 1
    }
  ],
  "info": {
    "total": 1,
    "batches": [
      {
        "key": "string",
        "section": "now",
        "kind": "value",
        "group_key": "string",
        "team": "string",
        "count": 1,
        "contracts": 1,
        "sites": 1,
        "overdue": 1,
        "earliest_due": "2026-01-15",
        "next_due": "2026-01-15",
        "label": {}
      }
    ],
    "more": 1
  },
  "decided_today": 1
}
  • 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.
GET/v1/contract-desk/todo/items

Query parameters

batch*stringA batch key: <section>~<team>~<kind>~<group key as base64url>. A control character (U+0000 to U+001F) in its team or group answers 400.
pageinteger Default: 1
limitintegerDefaults to the configured page size and is cut to the configured maximum.

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/todo/items?batch=string' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/todo/items?batch=string", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The batch and the page.

{
  "batch": {
    "key": "string",
    "section": "now",
    "kind": "value",
    "group_key": "string",
    "team": "string",
    "count": 1,
    "contracts": 1,
    "sites": 1,
    "overdue": 1,
    "earliest_due": "2026-01-15",
    "next_due": "2026-01-15",
    "label": {
      "field_key": "string",
      "field_label": "string",
      "state": "string",
      "code": "string",
      "date_kind": "string",
      "rule_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "rule_no": 1
    }
  },
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "value",
      "source": "contract_check",
      "crm_key": "string",
      "site_key": "string",
      "team": "string",
      "due_date": "2026-01-15",
      "critical": true,
      "urgency": "now",
      "group_key": "string",
      "payload": {},
      "first_seen_at": "2026-01-15T09:30:00Z",
      "contract": {
        "crm_key": "string",
        "name": "string",
        "number": "string",
        "partner": "string",
        "site_key": "string",
        "site_name": "string"
      },
      "site_name": "string"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 1
}
  • 400 — The key does not parse (unknown section or kind, no team, a group that is not base64url, a control character in its team or group), or a page or limit that is not a whole number from 1.
  • 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.
GET/v1/contract-desk/settings

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/settings' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/settings", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The Setup.

{
  "teams": {
    "kinds": {},
    "fields": {}
  },
  "defaults": {
    "kinds": {},
    "default": "string"
  },
  "available_teams": [
    "string"
  ],
  "kinds": [
    "value"
  ],
  "attributes": [
    {
      "field_key": "string",
      "label": "string",
      "open": 1
    }
  ],
  "updated_at": "2026-01-15T09:30:00Z",
  "updated_by_name": "string"
}
  • 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.
PUT/v1/contract-desk/settings

Request body (application/json)

teams*object

curl

curl -X PUT 'https://api.talonic.com/v1/contract-desk/settings' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "teams": {
    "kinds": {},
    "fields": {}
  }
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/settings", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "teams": {
      "kinds": {},
      "fields": {}
    }
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The Setup as saved.

{
  "teams": {
    "kinds": {},
    "fields": {}
  },
  "defaults": {
    "kinds": {},
    "default": "string"
  },
  "available_teams": [
    "string"
  ],
  "kinds": [
    "value"
  ],
  "attributes": [
    {
      "field_key": "string",
      "label": "string",
      "open": 1
    }
  ],
  "updated_at": "2026-01-15T09:30:00Z",
  "updated_by_name": "string"
}
  • 400 — A team outside available_teams or no text (details.reason unknown_team), a kind outside kinds (unknown_kind), more than settings_fields_max attributes (too_many_fields, with details.max), an empty or oversized attribute key or one holding a control character (bad_field_key), or kinds or fields that is no map or names __proto__, constructor or prototype, or a body that is no UTF-8 JSON (bad_teams).
  • 403 — The key lacks the write scope, its person is no Admin (the workspace permission), or may not see every document the index names.
  • 404 — The workspace has not added the app, or is not in the pilot.
GET/v1/contract-desk/items/{id}/decision

Path parameters

id*string (uuid)The item id (ContractDeskItem.id).

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The decision package.

{
  "item": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "value",
    "source": "contract_check",
    "crm_key": "string",
    "site_key": "string",
    "team": "string",
    "due_date": "2026-01-15",
    "critical": true,
    "urgency": "now",
    "group_key": "string",
    "payload": {},
    "first_seen_at": "2026-01-15T09:30:00Z"
  },
  "contract": {
    "crm_key": "string",
    "site_key": "string",
    "role": "string",
    "type": "string",
    "name": "string",
    "number": "string",
    "partner": "string",
    "partner_key": "string",
    "active": true,
    "start_date": "2026-01-15",
    "end_date": "2026-01-15",
    "has_documents": true,
    "document_count": 1,
    "documents": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string"
      }
    ]
  },
  "site_name": "string",
  "can_decide": true,
  "question": {
    "kind": "value",
    "field_key": "string",
    "label": "string",
    "state": "mismatch",
    "attr": {},
    "documents": [
      {
        "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "value": "string"
      }
    ],
    "options": [
      {
        "value": "string",
        "from": []
      }
    ],
    "crm_add": true,
    "mode": "decide",
    "suggestion": {
      "decision_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "value": "string",
      "by_name": "string",
      "at": "2026-01-15T09:30:00Z",
      "can_accept": true
    }
  },
  "letter": {
    "product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "record_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }
}
  • 400 — The id is no uuid.
  • 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 holds no such item.
  • 409 — The item is gone (details.reason gone): a decision of this workspace closed it (with details.by_name and details.at), or the source app no longer holds it open (no name or time: the desk does not know who).
POST/v1/contract-desk/items/{id}/decide

Path parameters

id*string (uuid)

Request body (application/json)

action*string ("set", "crm_add", "handled", "notice_sent", "renewal_declined", "terminated")One the item's kind offers: a value set (and crm_add where the CRM lacks the value); a notice deadline its three outcomes and handled; any other key date and a step handled.
valuestringThe value set records (at most value_max_chars, 10,000); it may run over several lines (tab, line feed and carriage return pass, every other control character answers 400). No other action takes one.
notestringWhy, in a few words (at most note_max_chars, 2,000; tab, line feed and carriage return pass); recorded at the source and in the desk's log.
dry_runboolean

curl

curl -X POST 'https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/decide' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "set",
  "value": "string",
  "note": "string",
  "dry_run": true
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/decide", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "action": "set",
    "value": "string",
    "note": "string",
    "dry_run": true
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — What the decision became.

{
  "status": "decided",
  "dry_run": true,
  "decision_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "undoable": true,
  "crm_report": "update",
  "revision": 1
}
  • 400 — An action the item's kind does not offer (details.reason not_offered; also a contract outcome on a notice deadline whose contract holds another outcome in Contracts while the date is still open: handled stays offered), set without a value (value_required), a value on another action (value_not_taken), a value or note too long (value_too_long, note_too_long) or holding a control character other than tab, line feed and carriage return (control_character), or an id that is no uuid.
  • 403 — The key lacks the write scope, its person lacks the edit permission, or may not see every document the index names.
  • 404 — The workspace has not added the app or is not in the pilot, or holds no such item.
  • 409 — The item is gone (details.reason gone): a decision of the workspace closed it (with by_name and at), or the source app no longer holds it open (no name; also a value of a contract Contract Check holds only in the CRM or no longer returns, and a key date or step Contracts no longer knows). Another decision or a build holds it right now, or the API process records the most decisions it takes at once (busy); the workspace has not added the source app (source_app_missing, details.app contract-check or contracts), or the workspace switched the app off (its index is not kept current then).
  • 422 — The source app refused or failed (details.reason source_refused); message is its own sentence (Contract Check's reason for a value; a fixed sentence when Contracts fails without one). Nothing changed in the desk; a build is asked for.
POST/v1/contract-desk/items/{id}/accept

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/accept' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/items/3fa85f64-5717-4562-b3fc-2c963f66afa6/accept", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 2xx: no JSON body
  • 403 — Always: a suggestion is accepted by a person in the app, not with an API key.
  • 404 — The workspace has not added the app, or is not in the pilot.
  • 409 — The workspace switched the app off.
GET/v1/contract-desk/decisions

Query parameters

minestring ("true", "false")
crm_keystringA contract's CRM key (ContractDeskContractLine.crm_key), compared lower-cased; empty or left out, every decision. A control character (U+0000 to U+001F) answers 400.
pageinteger
limitintegerDefault decisions_page_limit (50), cut to max_page_limit (100).

curl

curl -X GET 'https://api.talonic.com/v1/contract-desk/decisions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/decisions", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — One page of decisions.

{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "at": "2026-01-15T09:30:00Z",
      "by_name": "string",
      "mine": true,
      "kind": "value",
      "action": "set",
      "value": "string",
      "note": "string",
      "status": "decided",
      "item": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "kind": "value",
        "source": "contract_check",
        "crm_key": "string",
        "site_key": "string",
        "team": "string",
        "due_date": "2026-01-15",
        "critical": true,
        "urgency": "now",
        "group_key": "string",
        "payload": {},
        "first_seen_at": "2026-01-15T09:30:00Z"
      },
      "contract": {
        "crm_key": "string",
        "contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "number": "string",
        "partner": "string",
        "site_key": "string",
        "site_name": "string"
      },
      "undoable": true,
      "undone_at": "2026-01-15T09:30:00Z",
      "undone_by_name": "string"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 1,
  "today": 1
}
  • 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.
POST/v1/contract-desk/decisions/{id}/undo

Path parameters

id*string (uuid)The decision id (ContractDeskDecision.id).

curl

curl -X POST 'https://api.talonic.com/v1/contract-desk/decisions/3fa85f64-5717-4562-b3fc-2c963f66afa6/undo' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/contract-desk/decisions/3fa85f64-5717-4562-b3fc-2c963f66afa6/undo", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — The decision, undone.

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "at": "2026-01-15T09:30:00Z",
  "by_name": "string",
  "mine": true,
  "kind": "value",
  "action": "set",
  "value": "string",
  "note": "string",
  "status": "decided",
  "item": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "value",
    "source": "contract_check",
    "crm_key": "string",
    "site_key": "string",
    "team": "string",
    "due_date": "2026-01-15",
    "critical": true,
    "urgency": "now",
    "group_key": "string",
    "payload": {},
    "first_seen_at": "2026-01-15T09:30:00Z"
  },
  "contract": {
    "crm_key": "string",
    "contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "number": "string",
    "partner": "string",
    "site_key": "string",
    "site_name": "string"
  },
  "undoable": true,
  "undone_at": "2026-01-15T09:30:00Z",
  "undone_by_name": "string"
}
  • 400 — The id is no uuid.
  • 403 — The key lacks the write scope, its person lacks the edit permission, or may not see every document the index names.
  • 404 — The workspace has not added the app or is not in the pilot, or holds no such decision.
  • 409 — The decision cannot be undone (details.reason not_undoable): it is no item's or, for a contract outcome, no contract's latest decision in the desk, it was undone, the item is open again, a value has no undo, or Contracts no longer holds exactly what the decision set (the date's day or label changed, it was reopened or handled again there, the contract has another outcome since). Also another undo holds it or the API process records the most decisions it takes at once (busy), the workspace has not added the source app (source_app_missing), or switched the app off.
  • 422 — The source app refused or failed (details.reason source_refused); message is its own sentence.