Skip to content
Get started

Delete a worker webhook

DELETE/api/workers/{workerId}/webhook

Remove the webhook from a worker. Both url and token are cleared and no further deliveries are attempted. Only the worker creator can delete the webhook.

Path ParametersExpand Collapse
workerId: string
ReturnsExpand Collapse
Webhook object { token, url }
token: string

Shared secret sent in the X-Handinger-Token header on each delivery. null when no webhook is configured.

url: string

HTTPS endpoint that receives webhook deliveries when a task completes. null when no webhook is configured.

Delete a worker webhook

curl https://handinger.com/api/workers/$WORKER_ID/webhook \
    -X DELETE \
    -H "Authorization: Bearer $HANDINGER_API_KEY"
{
  "token": "whk_01HZY31W2SZJ8MJ2FQTR3M1K9D",
  "url": "https://example.com/handinger-webhook"
}
Returns Examples
{
  "token": "whk_01HZY31W2SZJ8MJ2FQTR3M1K9D",
  "url": "https://example.com/handinger-webhook"
}