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",
"location": {
"type": "Point",
"coordinates": [77.643271, 12.94964]
},
"address": "Embassy GolfLinks Business Park, Bengaluru, Karnataka, India"
}
}| 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 |
| data.location | object | No | Last known worker location as a GeoJSON Point, with coordinates in longitude, latitude order. Matches the existing top-level location field. |
| data.address | string | No | Human-readable address of data.location. |
| worker_handle | string | Yes | Unique handle of the worker. |
| device_id | string | No | Unique Identifier of the device which is being used by worker |
data.location is omitted when no location is available.