Compliance Frameworks
List compliance frameworks, make workspace documents frameworks, turn a framework ON or OFF, and remove one. Only ON frameworks count in compliance evaluations.
A framework row describes the reading of one framework document: its status, whether it is ON (active), the items extracted from it, and the state of its rule generation. GET /v1/compliance/frameworks lists the frameworks of the workspace whose document still exists, newest first, without the extracted items. It is the route to poll after adopting a document, because both the reading (status) and the rule derivation (rules_status) are visible on each row.
status is one of pending, processing, waiting, completed and error. waiting means the reading waits for the workspace's own agent because the decider is external. rules_status is one of none, generating, waiting, ready and error, with rules_error carrying the reason of a failure. Two counts are easy to confuse: rule_count is the number of items extracted from the framework (its captured fields), while generated_rule_count is the number of rules currently stored, after people edited or deleted generated ones.
Turning a framework ON puts its rules in force. Only a framework whose reading is completed can be turned ON, and turning it OFF always works. OFF hides a framework's rules from evaluations and from discrepancy counts without deleting anything, so a framework can be turned ON again later with its rules intact.
/v1/compliance/frameworksFramework fields
Response: 200 Frameworks (excerpt)
{
"data": [
{
"document_id": "9d0c4f6e-3b1a-4c53-8f0e-2a7b6c1d5e40",
"status": "completed",
"active": true,
"framework_name": "Supplier Code of Conduct",
"rule_count": 34,
"error": null,
"extracted_at": "2026-10-19T14:02:11.000Z",
"updated_at": "2026-10-19T14:03:40.000Z",
"rules_status": "ready",
"rules_error": null,
"rules_decided_by": null,
"decided_by": null,
"generated_rule_count": 28,
"summary": "Obligations for suppliers on safety, security incidents and subcontracting."
}
]
}/v1/compliance/frameworks/from-documentsBody fields
The response is { "data": [...] } with one framework view per document. With the external decider, each reading waits as a task for the workspace's agent instead of calling the platform's model (see External Decider and Tasks). A document id that is not found in the workspace returns 404.
/v1/compliance/frameworks/{documentId}/activePath and body
cURL: Turn a framework OFF
curl -X POST "https://api.talonic.com/v1/compliance/frameworks/9d0c4f6e-3b1a-4c53-8f0e-2a7b6c1d5e40/active" \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active": false}'Turning ON a framework whose reading is not completed is refused with 422, and an unknown framework returns 404. The summary field is null on the view returned after a change; read the list to see it.
/v1/compliance/frameworks/{documentId}Path parameters