---
title: "Evaluate document sets as one whole"
method: POST
path: "/v1/compliance/sets/evaluate"
tags: ["Compliance"]
---

# Evaluate document sets as one whole

`POST /v1/compliance/sets/evaluate`

## Request

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

Starts an evaluation per set and returns at once. Every member's text goes to each model call, so a rule that asks for another document can pass or fail instead of staying unclear. A set with a rule set is judged only against that rule set's rules of ON frameworks. Members are read anew (an assembly set re-reads its group). A set whose evaluation is still running is not evaluated twice: its running evaluation is returned.

## Request body

- object
  - `set_ids` string[], required

## Response `201`

One evaluation per set.

- 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/sets/evaluate/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)
