HyperTrackDocs
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"
  }
}
NameTypeMandatoryDescription
data.valuestringYeswork_status_updated
data.work_status.availableenumYesWhether the worker is available
data.work_status.trackingstringYesWhether the worker is tracking
data.decision_sourcestringNoEnumerated value indicating the source of the tracking update decision: either business or hypertrack
worker_handlestringYesUnique handle of the worker.
device_idstringNoUnique Identifier of the device which is being used by worker