Contract Check Endpoint Reference
Reference for 9 Contract Check endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Shows a workspace's contracts as a tree per site, built from its CRM table (site, the workspace's role on the contract, contract type, CRM record, the documents matched to it), and runs three checks over it. Check 1 compares, attribute by attribute, the value Talonic read from the documents with the CRM's value, and a person decides; check 2 compares sibling contracts of one site, role and type whose main documents share a standard text (is the CRM kept alike, is one file filed twice); check 3 compares the roles of one site (a sale without a purchase, start dates years apart, a purchase ending before the sale, and similar). Findings are worked out from the latest sync and the decisions, so a decision changes them at once. The app never writes to the CRM. Rows and documents follow the document visibility of the key's person. These endpoints belong to the Contract Check app (catalog slug contract-check); they return 404 in a workspace that has not added the app — 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.
/v1/contract-check/statusRequired scope: read
curl
curl -X GET 'https://api.talonic.com/v1/contract-check/status' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/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 status.
{
"installed": true,
"configured": true,
"syncing": true,
"synced_at": "2026-01-15T09:30:00Z",
"data_product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": {
"syncing": true,
"started_at": "2026-01-15T09:30:00Z",
"error": "string",
"contracts": 1,
"sites": 1,
"unplaced_rows": 1,
"unmatched_rows": 1,
"ambiguous_rows": 1,
"product_updated_at": "2026-01-15T09:30:00Z",
"table_updated_at": "2026-01-15T09:30:00Z",
"pipeline_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"review_updated_at": "2026-01-15T09:30:00Z",
"rerun": true
}
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/syncRequired scope: write
curl
curl -X POST 'https://api.talonic.com/v1/contract-check/sync' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/sync", {
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 sync was asked for.
{
"started": true
}- 401 — Missing or invalid API key.
- 403 — The key lacks the
writescope, or its person lacks therunpermission. - 404 — The requested resource was not found.
- 409 — The app is switched off in this workspace.
/v1/contract-check/sitesRequired scope: read
Query parameters
true keeps the sites with at least one finding.curl
curl -X GET 'https://api.talonic.com/v1/contract-check/sites' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/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 sites.
[
{
"site_key": "string",
"site_name": "string",
"contracts": 1,
"with_documents": 1,
"counts": {
"purchase": 1,
"sale": 1,
"intercompany": 1,
"unassigned": 1
},
"active_counts": {
"purchase": 1,
"sale": 1,
"intercompany": 1,
"unassigned": 1
},
"findings": {
"1": 1,
"2": 1,
"3": 1
},
"bad": true
}
]- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/sites/{key}Required scope: read
Path parameters
curl
curl -X GET 'https://api.talonic.com/v1/contract-check/sites/key' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/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,
"counts": {
"purchase": 1,
"sale": 1,
"intercompany": 1,
"unassigned": 1
},
"active_counts": {
"purchase": 1,
"sale": 1,
"intercompany": 1,
"unassigned": 1
}
},
"contracts": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"crm_key": "string",
"site_key": "string",
"site_name": "string",
"role": "purchase",
"type": "string",
"legacy_type": "string",
"name": "string",
"number": "string",
"partner": "string",
"status": "string",
"active": true,
"start": "2026-01-15",
"end": "2026-01-15"
}
],
"role_checks": [
{
"id": "sale-purchase",
"state": "ok",
"params": {},
"contract_ids": [
"string"
]
}
],
"groups": [
{
"key": "string",
"site_key": "string",
"role": "purchase",
"type": "string",
"contracts": [
{}
],
"similarity": 1.5,
"out_of_sync": [
"string"
],
"expected": [
"string"
],
"same_file_ids": [
"string"
]
}
],
"findings": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"mode": 1,
"severity": "bad",
"site_key": "string",
"code": "string",
"contract_ids": [
"string"
],
"role": "purchase",
"type": "string",
"params": {}
}
],
"decisions": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"crm_key": "string",
"field_key": "string",
"verdict": "crm_ok",
"value": "string",
"status": "active",
"resolved_by": "sync",
"by": "string",
"at": "2026-01-15T09:30:00Z",
"reason": "string"
}
],
"settings": {
"tree": {
"key": "string",
"site": {
"column": "string",
"pattern": "string"
},
"site_name": "string",
"role": {
"column": "string",
"values": {}
},
"type": "string",
"legacy_type": "string",
"active": {
"column": "string",
"values": []
},
"status": "string",
"start": "string",
"end": "string",
"partner": [
"string"
],
"name": "string",
"number": "string"
},
"required": {},
"varies": [
"string"
],
"declined": [
"string"
],
"thresholds": {
"start_gap_years": 2,
"similarity": 0.9,
"end_coverage": true,
"date_rule_types": [
"string"
],
"purchase_overrun_years": 5
}
}
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/contracts/{id}Required scope: read
Path parameters
curl
curl -X GET 'https://api.talonic.com/v1/contract-check/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-check/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": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"crm_key": "string",
"site_key": "string",
"site_name": "string",
"role": "purchase",
"type": "string",
"legacy_type": "string",
"name": "string",
"number": "string",
"partner": "string",
"status": "string",
"active": true,
"start": "2026-01-15",
"end": "2026-01-15"
},
"decisions": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"crm_key": "string",
"field_key": "string",
"verdict": "crm_ok",
"value": "string",
"status": "active",
"resolved_by": "sync",
"by": "string",
"at": "2026-01-15T09:30:00Z",
"reason": "string"
}
],
"required": [
"string"
]
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/findingsRequired scope: read
Query parameters
curl
curl -X GET 'https://api.talonic.com/v1/contract-check/findings' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/findings", {
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 findings.
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"mode": 1,
"severity": "bad",
"site_key": "string",
"code": "string",
"contract_ids": [
"string"
],
"role": "purchase",
"type": "string",
"params": {}
}
]- 400 — The request is invalid.
- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/crm-worklistRequired scope: read
curl
curl -X GET 'https://api.talonic.com/v1/contract-check/crm-worklist' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/crm-worklist", {
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 worklist.
[
{
"decision_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"crm_key": "string",
"site_key": "string",
"contract_name": "string",
"number": "string",
"partner": "string",
"field_key": "string",
"field_label": "string",
"crm_value": "string",
"decided_value": "string",
"verdict": "crm_update",
"by": "string",
"at": "2026-01-15T09:30:00Z",
"reason": "string"
}
]- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/decisionsRequired scope: write
Request body (application/json)
curl
curl -X POST 'https://api.talonic.com/v1/contract-check/decisions' \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"field_key": "string",
"value": "string",
"verdict": "crm_ok",
"reason": "string"
}
],
"dry_run": true
}'Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contract-check/decisions", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"items": [
{
"contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"field_key": "string",
"value": "string",
"verdict": "crm_ok",
"reason": "string"
}
],
"dry_run": true
}),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 201 — One result per item, in order.
{
"results": [
{
"contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"field_key": "string",
"status": "decided",
"document_side": "resolved",
"reason": "string"
}
],
"dry_run": true
}- 400 — The request is invalid.
- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
/v1/contract-check/decisions/{id}/acceptRequired scope: write
Path parameters
curl
curl -X POST 'https://api.talonic.com/v1/contract-check/decisions/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-check/decisions/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- 400 — The request is invalid.
- 401 — Missing or invalid API key.
- 403 — A suggestion is accepted by a person in the app, not with an API key.
- 404 — The requested resource was not found.