Workers
Worker Activity

Record worker heartbeat

Changed on

Accepts signed heartbeat and recent-activity updates from a worker so Den can track worker health and recent usage.

post/v1/workers/{id}/activity-heartbeat

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/workers/{id}/activity-heartbeat
  • Auth: HTTP bearer

Path parameters

idstring typeid required

Den TypeID with 'wrk_' prefix and a 26-character base32 suffix.

Request body

sentAtstring date-time
isActiveRecentlyboolean required
lastActivityAtstring date-time nullable
openSessionCountinteger

Response

Worker heartbeat accepted successfully.

oktrue required
workerIdstring required
isActiveRecentlyboolean required
openSessionCountinteger nullable required
lastHeartbeatAtstring date-time required
lastActiveAtstring date-time nullable required

Changes