Skip to content
Get started

Delete a worker webhook

workers.webhooks.delete(worker_id) -> Webhook { token, url }
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.

ParametersExpand Collapse
worker_id: String
ReturnsExpand Collapse
class Webhook { 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

require "handinger"

handinger = Handinger::Client.new(api_key: "My API Key")

webhook = handinger.workers.webhooks.delete("t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM")

puts(webhook)
{
  "token": "whk_01HZY31W2SZJ8MJ2FQTR3M1K9D",
  "url": "https://example.com/handinger-webhook"
}
Returns Examples
{
  "token": "whk_01HZY31W2SZJ8MJ2FQTR3M1K9D",
  "url": "https://example.com/handinger-webhook"
}