/webhooksCreate a webhook subscription
Creates a webhook subscription for a resource and delivers events to the specified target URL. Supply resource and target in the data block, then complete the confirmation handshake while the creation request remains in flight. The target must return the X-Hook-Secret value in a successful handshake response before the webhook is established.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Webhook subscription details, including the resource to monitor and the URL that receives event notifications.
A 400 is returned when resource, target, or the request syntax is invalid, or when the confirmation handshake is not completed successfully. A 401 is returned without a valid authentication token, and a 403 is returned for an inaccessible resource or invalid hostname such as localhost; the authenticated user also needs the webhooks:write scope. A 404 indicates an unknown action or resource, while a 500 indicates a server-side failure.