Payloads
A payload is the JSON message a notification sends, the same shape for every event.
The message
An HTTP channel sends the payload as the body of a request, with the method, headers and authentication of the connector. An FTP or SFTP channel writes it to webhook.json, and a transformer can reshape it first. See Notifications.
{
"id": "6f1c2b7e-0d4a-4a52-9f0e-3b8d2c1a9e47",
"timestamp": "2026-11-02T09:14:03.120Z",
"team_id": "tK3vQ9xLm2Rf8WbN0aZp",
"project_id": "p3irz",
"step_id": "ppls_8Hc2Lq0vXyT4mN7sKd1e",
"event": "TASK_COMPLETED",
"event_level": "TASK",
"upload": {
"id": "upld_7Hq2LmX9aB3cD4eF5gH",
"name": "Order 4471",
"status": "PROCESSING",
"warning_type": null,
"meta": [{ "name": "message_id", "value": "<CAF1x9@mail.example.com>" }],
"folder_id": "f2Kd81mQ",
"created_at": "2026-11-02T09:12:40.000Z",
"processed_at": null,
"export_failed_at": null,
"files": [{ "id": "c3d4", "name": "order-4471.pdf", "content_type": "application/pdf", "base64": null }]
},
"task": {
"id": "task_Zp4Rk2Wn8Qx1Lc7Vb3M",
"name": "order-4471.pdf",
"status": "COMPLETED",
"step_type": "EXTRACT",
"upload_id": "upld_7Hq2LmX9aB3cD4eF5gH",
"project_id": "p3irz",
"failure_reason": null,
"soft_fail_reason": null,
"exported_at": null,
"export_failed_at": null
},
"issue": null,
"duplicate_of_upload_id": null
}
Fields
The top level says what happened, and where:
- event and event_level: The event, such as
TASK_COMPLETED, and whether it is about anUPLOADor aTASK. See Events. - project_id: The project, which also tells Live and Test apart, since they are separate projects.
- step_id: The step the document is in, or
nullfor upload events. - upload: The upload, with its status (
PROCESSING,IN_REVIEWorCOMPLETED) and its files. Files carry no content here; see Get an upload. - task: The document, or
nullfor upload events. Itsstep_typeisGROUPfor Split,SEGMENTfor Segmentation,CLASSIFYfor the Router andEXTRACTfor a task. See Get a task for its statuses. - issue: The reported issue, for
TASK_REPORTEDandTASK_DISCARDED, with the message, the issues and who reported it. - duplicate_of_upload_id: The earlier upload, for
UPLOAD_DUPLICATE_DETECTED.
Handling a notification
Answer quickly with a 2xx status; any other answer counts as a failed delivery, and Send AI does not send it again. The id is new for every message, so to recognise a repeat, compare event, upload.id and task.id instead.