Document Extracted
The Document Extracted event is triggered when document processing completes, whether successful or failed. This event provides immediate feedback on extraction job status.
When It Triggers
Successful Extraction
When a document is successfully processed and data is extracted
Failed Extraction
When document processing fails due to errors or timeouts
process-file
API endpoint, typically within 30-120 seconds depending on document complexity.Payload Structure
{ "eventId": "evt_abc123def456", "eventType": "DOCUMENT_EXTRACTED", "timestamp": "2024-01-15T10:30:00Z", "organizationId": "org_xyz789", "deploymentId": "dep_123abc", "extractionSchemaId": "schema_456def", "fileId": "file_789ghi", "jobId": "job_012jkl", "data": { "status": "success", "errorMessage": null } }
eventId
Unique identifier for this webhook event. Use for idempotency to prevent duplicate processing.
eventType
Always "DOCUMENT_EXTRACTED"
for this event type.
timestamp
When the extraction completed, in ISO 8601 format (UTC).
organizationId
Your organization identifier.
deploymentId
The deployment that processed this document.
extractionSchemaId
The extraction schema used to process the document.
fileId
Unique identifier for the processed file.
jobId
Extraction job identifier. Unique for each processing attempt.
data.status
Extraction result: "success"
if completed successfully, "failed"
if errors occurred.
data.errorMessage
Error description if status is "failed"
, otherwise null
.
Success vs Failed Examples
{ "eventId": "evt_success_456", "eventType": "DOCUMENT_EXTRACTED", "timestamp": "2024-01-15T10:30:45Z", "organizationId": "org_xyz789", "deploymentId": "dep_123abc", "extractionSchemaId": "schema_456def", "fileId": "file_789ghi", "jobId": "job_012jkl", "data": { "status": "success", "errorMessage": null } }
{ "eventId": "evt_failed_789", "eventType": "DOCUMENT_EXTRACTED", "timestamp": "2024-01-15T10:32:15Z", "organizationId": "org_xyz789", "deploymentId": "dep_123abc", "extractionSchemaId": "schema_456def", "fileId": "file_bad123", "jobId": "job_error456", "data": { "status": "failed", "errorMessage": "Document format not supported" } }