Contracts Endpoint Reference
Reference for 4 Contracts endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Folds every contract's documents (base contract, amendments, renewals, terminations, price sheets) into one record per contract: the terms in force, the contract's status on the day, the dates that need someone and the processes the contract's data starts for sales, billing, legal, operations and the other departments. Every term cites the document and the verbatim quote it was read from, and counts only when the quote occurs in the document. A person's corrections (document role, exclusion, re-keying, hand-set terms, decisions) persist across re-reads and are audited with the calling key as the actor. These endpoints belong to the Contracts app (catalog slug contracts); 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/contracts/summaryRequired scope: read
curl
curl -X GET 'https://api.talonic.com/v1/contracts/summary' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contracts/summary", {
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 summary.
{
"data": {
"contracts": 1,
"parties": 1,
"views": {},
"notice": {
"due_90": 1,
"due_30": 1
},
"renewal": {
"count": 1,
"value": {
"amount": 1.5,
"currency": "string"
},
"without_value": 1
},
"exits": {
"weeks": [
{}
]
},
"agenda": {
"open": 1,
"due_14": 1
},
"processes": {
"tasks": 1,
"contracts": 1,
"due_30": 1,
"contracts_due_30": 1,
"gap_rules": 1,
"by_department": {}
}
}
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
/v1/contracts/processes/overviewRequired scope: read
Query parameters
q.curl
curl -X GET 'https://api.talonic.com/v1/contracts/processes/overview' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contracts/processes/overview", {
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 overview.
{
"data": {
"tasks": 1,
"contracts": 1,
"due_30": 1,
"contracts_due_30": 1,
"gap_rules": 1,
"by_department": {},
"buckets": {
"overdue": {
"data": [],
"total": 1
},
"d30": {
"data": [],
"total": 1
},
"d90": {
"data": [],
"total": 1
},
"later": {
"data": [],
"total": 1
},
"undated": {
"data": [],
"total": 1
}
},
"gaps": [
{
"rule_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rule_no": 1,
"department": "sales",
"contracts": 1
}
]
}
}- 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.
- 429 — Daily rate limit exceeded.
/v1/contracts/settingsRequired scope: read
curl
curl -X GET 'https://api.talonic.com/v1/contracts/settings' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contracts/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 settings.
{
"data": {
"rules_mode": "all",
"active_rule_ids": [
"string"
],
"updated_at": "2026-01-15T09:30:00Z",
"updated_by": "string",
"total_rules": 1
}
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
/v1/contracts/settingsRequired scope: write
Request body (application/json)
all runs every process rule; chosen only active_rule_ids.GET /v1/contracts/process-rules); sent in both modes so a switch to all keeps the list.curl
curl -X PUT 'https://api.talonic.com/v1/contracts/settings' \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rules_mode": "all",
"active_rule_ids": [
"string"
]
}'Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/contracts/settings", {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rules_mode": "all",
"active_rule_ids": [
"string"
]
}),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — The saved settings.
{
"rules_mode": "all",
"active_rule_ids": [
"string"
],
"updated_at": "2026-01-15T09:30:00Z",
"updated_by": "string",
"total_rules": 1
}- 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.
- 422 — A rule id is not in the process catalogue.
- 429 — Daily rate limit exceeded.