Document Reviewed

Webhook Event

The Document Reviewed event is triggered when all rows in a document are marked as accepted, confirming that the document processing workflow is complete and the data is ready for use.

When It Triggers

Event Trigger Conditions
This event fires when human review of extracted data is complete

All Rows Accepted

When all extracted data rows for a document are marked as accepted (no pending rows remain)

Human Review Complete

Confirms that human reviewers have validated and approved the extracted data

Payload Structure

Complete Event Payload
The structure sent to your webhook endpoint for Document Reviewed events
document-reviewed-payload.json
{
  "eventId": "evt_reviewed_456",
  "eventType": "DOCUMENT_REVIEWED",
  "timestamp": "2024-01-15T10:45:30Z",
  "organizationId": "org_xyz789",
  "deploymentId": "dep_123abc",
  "extractionSchemaId": "schema_456def",
  "fileId": "file_789ghi",
  "jobId": null,
  "data": {
    "status": "reviewed",
    "acceptedRowsCount": 15,
    "totalRowsCount": 15
  }
}
Field Descriptions
Detailed explanation of each field in the payload
eventId
string

Unique identifier for this webhook event. Use for idempotency to prevent duplicate processing.

eventType
string

Always "DOCUMENT_REVIEWED" for this event type.

timestamp
ISO 8601

When the review was completed, in ISO 8601 format (UTC).

organizationId
string

Your organization identifier.

deploymentId
string

The deployment that processed this document.

extractionSchemaId
string

The extraction schema used to process the document.

fileId
string

Unique identifier for the reviewed file.

jobId
null

Always null for Document Reviewed events (job ID is only relevant for extraction events).

data.status
"reviewed"

Always "reviewed" indicating the document review is complete.

data.acceptedRowsCount
number

Number of rows accepted (will equal totalRowsCount since all rows must be accepted to trigger this event).

data.totalRowsCount
number

Total number of rows in the document.

Implementation Examples

Handling Document Reviewed Events
Example webhook handlers for processing Document Reviewed events
document-reviewed-handler.js