WebhooksWorkers
Work Status Updated
Webhook payload sent when the tracking or available status of a worker changes.
This webhook is sent whenever a worker’s work status changes. For example, it is triggered when the tracking or available status switches from false to true (or true to false). It contains details about the worker, the device, and the updated status.
{
"device_id": "AB930CCD-50A9-4ECA-8758-D7CB09058606",
"recorded_at": "2024-08-30T07:52:12.042450168Z",
"type": "worker",
"version": "3.0.0",
"worker_handle": "worker-shashwat",
"data": {
"value": "work_status_updated",
"work_status": {
"tracking": true,
"available": true
},
"decision_source": "business"
}
}| Name | Type | Mandatory | Description |
|---|---|---|---|
| data.value | string | Yes | work_status_updated |
| data.work_status.available | enum | Yes | Whether the worker is available |
| data.work_status.tracking | string | Yes | Whether the worker is tracking |
| data.decision_source | string | No | Enumerated value indicating the source of the tracking update decision: either business or hypertrack |
| worker_handle | string | Yes | Unique handle of the worker. |
| device_id | string | No | Unique Identifier of the device which is being used by worker |