Compliance

Compare a batch of documents for discrepancies

Changed on

Starts a comparison and returns at once; the run waits for every document's text, then makes one model call (or, with the external decider, waits as a task).

post/v1/compliance/discrepancy-runs

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body

object required
document_ids, string[] required

The configured maximum (20 by default) applies on top.

Response

The run.

ComplianceDiscrepancyRun required
id, string uuid
status, 'pending' | 'processing' | 'waiting' | 'completed' | 'error'

waiting: offered to the workspace's own agent. A processing run older than the staleness limit reads error.

error, string nullable
documents, object[]
discrepancy_count, integer

Discrepancies at least two active documents still disagree on.

active_document_count, integer
decided_by, string nullable

The external agent's label when the platform's model did not compare.

created_at, string date-time
finished_at, string date-time nullable

Changes