Skip to main content
Triggered when document extraction completes.

Event Type

document.extracted

Description

This event is fired when the document extraction process completes, including classification and data extraction. Use this event to receive extracted data and update your systems with the results.

Payload Structure

event
string
The event type, always “document.extracted”
leadId
string
ID of the lead this document belongs to
documentId
string
ID of the document that was extracted
status
string
Extraction status, typically “completed”
parentActionId
string
ID of the parent action that triggered the extraction
extractionResult
object
Results from the extraction process
occurredAt
string
ISO 8601 timestamp when the event occurred
workspaceId
string
ID of the workspace this event belongs to
{
  "event": "document.extracted",
  "leadId": "910bb19a-2e9d-400f-8d15-9c461bb0f4aa",
  "status": "completed",
  "documentId": "ac52376a-fe68-4024-8b16-6acdcb9b3530",
  "workspaceId": "6048d78a-584a-4f1e-9e39-e011ca4cc48c",
  "parentActionId": "9d7fe2f3-ec1a-481c-b814-a0d1c8017e1f",
  "extractionResult": {
    "items": [
      {
        "label": "Company Name",
        "value": "OmniAI Technology Inc.",
        "leadChecklistItemId": "adc887d0-7238-4ce0-998d-523a22c282f4"
      },
      {
        "label": "Company Address",
        "value": "188 King St, San Francisco, CA, 94105",
        "leadChecklistItemId": "9930b10a-379d-4a83-be6a-9e16606c810c"
      }
    ],
    "extractedCount": 2
  }
}