---
title: "Evaluate documents against the ON frameworks"
method: POST
path: "/v1/compliance/evaluations"
tags: ["Compliance"]
---

# Evaluate documents against the ON frameworks

`POST /v1/compliance/evaluations`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/evaluations`
- Auth: HTTP bearer

Starts one evaluation per document and returns at once; the model calls run in the background (or, with the `external` decider, wait as tasks). The documents are put on the Evaluations list. A document whose evaluation is still running is not evaluated twice: its running evaluation is returned. A document that is itself a framework is refused.

## Request body

- object
  - `document_ids` string[], required: The configured limit (500 by default) applies on top.

## Response `201`

One evaluation per document.

- object
  - `data` ComplianceEvaluation[]
    - `id` string, uuid
    - `document_id` string, uuid, nullable: The evaluated document; null for a set's evaluation.
    - `set_id` string, uuid, nullable: The evaluated document set; null for one document.
    - `status` 'processing' | 'waiting' | 'completed' | 'error': `waiting`: offered to the workspace's external agent, not yet answered. A `processing` evaluation older than the staleness limit reads `error`.
    - `decided_by` string, nullable: The external agent's label when the platform's model did not decide.
    - `error` string, nullable
    - `framework_ids` string[]
    - `rule_count` integer
    - `pass_count` integer
    - `fail_count` integer
    - `not_applicable_count` integer
    - `unclear_count` integer
    - `outdated` boolean: The ON frameworks, their rules or the rule count differ from the evaluation's run. For a set, also when its rule set was swapped or changed, or its documents edited, since.
    - `member_ids` string[], nullable: A set evaluation's members in the order the decider saw them ([D1] is the first); null for one document or before the run.
    - `created_at` string, date-time
    - `finished_at` string, date-time, nullable

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `422`: The request is well-formed but violates the declared task contract.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

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