Retrieve a worker webhook
workers.webhooks.retrieve(worker_id) -> Webhook { token, url }
GET/api/workers/{workerId}/webhook
Retrieve the webhook URL and shared token configured for a worker. Both fields are null when no webhook is configured. Only the worker creator can read the webhook configuration.
Retrieve a worker webhook
require "handinger"
handinger = Handinger::Client.new(api_key: "My API Key")
webhook = handinger.workers.webhooks.retrieve("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"
}