{
"eventId": "string",
"payload": {
"object": "workflow_run",
"id": "workflow_run_xKm9pNv3qWsY_jL2tR5Dh",
"workflow": {
"object": "workflow",
"id": "workflow_BMlfq_yWM3sT-ZzvCnA3f",
"name": "Invoice Processing",
"createdAt": "2024-03-21T16:45:00Z",
"updatedAt": "2024-03-21T16:45:00Z",
"createdBy": {
"type": "user",
"email": "matt@extend.app"
}
},
"workflowVersion": {
"object": "workflow_version",
"id": "workflow_version_Zk9mNP12Qw4-yTv8BdR3H",
"version": "1",
"name": "Production v1",
"createdAt": "2024-03-21T16:45:00Z",
"createdBy": {
"type": "user",
"email": "matt@extend.app"
}
},
"dashboardUrl": "https://dashboard.extend.ai/workflows/workflow_run_xKm9pNv3qWsY_jL2tR5Dh",
"status": "PENDING",
"metadata": {},
"batchId": "batch_7Ws31-F5",
"files": [
{
"object": "file",
"id": "file_xK9mLPqRtN3vS8wF5hB2cQ",
"name": "Invoices.pdf",
"type": "PDF",
"parentFileId": "file_Zk9mNP12Qw4yTv8BdR3H",
"metadata": {},
"createdAt": "2024-03-21T16:45:00Z",
"updatedAt": "2024-03-21T16:45:00Z"
}
],
"failureReason": "string",
"failureMessage": "string",
"initialRunAt": "2025-04-28T17:01:39.285Z",
"reviewedByUser": "jane.doe@example.com",
"reviewed": true,
"rejectionNote": "string",
"reviewedAt": "2024-03-21T16:45:00Z",
"startTime": "2024-03-21T15:30:00Z",
"endTime": "2024-03-21T15:35:00Z",
"stepRuns": [
{
"object": "workflow_step_run",
"id": "workflow_step_run_xK9mLPqRtN3vS8wF5hB2cQ",
"workflowRunId": "workflow_run_xKm9pNv3qWsY_jL2tR5Dh",
"stepType": "PARSE",
"status": "PROCESSED",
"files": [
{
"object": "file",
"id": "file_xK9mLPqRtN3vS8wF5hB2cQ",
"name": "Invoices.pdf",
"type": "PDF",
"parentFileId": "file_Zk9mNP12Qw4yTv8BdR3H",
"metadata": {},
"createdAt": "2024-03-21T16:45:00Z",
"updatedAt": "2024-03-21T16:45:00Z"
}
],
"step": {
"object": "workflow_step",
"id": "step_xK9mLPqRtN3vS8wF5hB2cQ",
"name": "Validate Invoice Total",
"type": "PARSE"
},
"result": {
"parseRun": {
"object": "parse_run",
"id": "pr_xK9mLPqRtN3vS8wF5hB2cQ",
"file": {
"object": "file",
"id": "file_xK9mLPqRtN3vS8wF5hB2cQ",
"name": "Invoices.pdf",
"type": "PDF",
"parentFileId": "file_Zk9mNP12Qw4yTv8BdR3H",
"metadata": {},
"createdAt": "2024-03-21T16:45:00Z",
"updatedAt": "2024-03-21T16:45:00Z"
},
"status": "PENDING",
"failureReason": "FILE_TYPE_NOT_SUPPORTED",
"failureMessage": "File type not supported for parsing.",
"metadata": {},
"output": {
"chunks": [
{
"object": "chunk",
"type": "page",
"content": "This is the content of the chunk.",
"metadata": {
"pageRange": {
"start": 1,
"end": 1
}
},
"blocks": [
{
"object": "block",
"id": "string",
"type": "text",
"content": "string",
"details": {},
"metadata": {},
"polygon": [
{
"x": 10,
"y": 20
}
],
"boundingBox": {
"left": 10,
"top": 10,
"right": 20,
"bottom": 20
}
}
]
}
]
},
"outputUrl": "https://...",
"metrics": {
"processingTimeMs": 1234,
"pageCount": 5
},
"config": {},
"usage": {
"credits": 9
}
}
}
}
],
"usage": {
"credits": 9
}
},
"eventType": "workflow_run.completed"
}