run.completed
Event triggered whenever an extraction run completes successfully.
The data field contains the structured data extracted from the document according to the schema definition.
Payload Parameters
Webhook payloads are flat camelCase objects — every field sits at the top level.
event: string
The event type that triggered the webhook (`run.completed`).
runId: string
Unique identifier for the extraction run.
documentId: string
ID of the document that was processed.
environmentId: string
Id of the environment the run belongs to (not the environment slug).
status: string
Always `completed` for this event.
timestamp: string
ISO 8601 timestamp when the event was dispatched.
data: object
The structured data extracted from the document.
confidence: number
Extraction confidence score (0.0 to 1.0).
200 Response
{
"event": "run.completed",
"runId": "run_xyz789",
"documentId": "doc_abc123",
"environmentId": "env_prod123",
"status": "completed",
"timestamp": "2026-03-15T10:30:12.000Z",
"data": {
"invoiceNumber": "INV-2026-001",
"total": 1250,
"vendor": "Acme Corp"
},
"confidence": 0.92
}