v1

latestOpenAPI 3.1.02026-07-263644911022.4 KB
Ingestion

Approve an AI extraction review (ingest the candidates)

Approves a PENDING_REVIEW review and runs the SINGLE deterministic handoff into the normal ingestion pipeline (dedup + outbox + match-trigger), linking the resulting job to the review. This is the ONLY path from an AI candidate to a reconciled transaction, and it runs only on explicit human approval. The approving principal is the reviewer (audit attribution). Tenant from the JWT, context from the path.

post/v1/imports/contexts/{contextId}/extraction-reviews/{reviewId}/approve

Path parameters

contextIdstring uuid required

Context ID

Context ID

reviewIdstring uuid required

Review ID

Review ID

Response

OK

candidateCountinteger required

Number of candidates ingested through the normal pipeline

ingestionJobIdstring uuid required

Downstream ingestion job the approved candidates produced

reviewIdstring uuid required

Identifier of the approved review

Example response

{
  "candidateCount": 12,
  "ingestionJobId": "550e8400-e29b-41d4-a716-446655440000",
  "reviewId": "550e8400-e29b-41d4-a716-446655440000"
}