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 } }
eventIdUnique identifier for this webhook event. Use for idempotency to prevent duplicate processing.
eventTypeAlways "DOCUMENT_EXTRACTED" for this event type.
timestampWhen the extraction completed, in ISO 8601 format (UTC).
organizationIdYour organization identifier.
deploymentIdThe deployment that processed this document.
extractionSchemaIdThe extraction schema used to process the document.
fileIdUnique identifier for the processed file.
jobIdExtraction job identifier. Unique for each processing attempt.
data.statusExtraction result: "success" if completed successfully, "failed" if errors occurred.
data.errorMessageError 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" } }