Create webhook
create_webhookRegister an endpoint PinBridge calls when a pin publishes or fails.
Use instead of polling get_pin when the caller can receive HTTP
callbacks. Check list_webhooks first to avoid registering the same URL
twice; use update_webhook to change events or pause an existing one.
Default events are pin.published and pin.failed.
Returns id, url, events, is_enabled, created_at. Fails with
validation_error when the URL is not a valid http(s) URL or the secret
is shorter than 16 characters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public endpoint that receives POSTed events. | |
| events | No | Event names to deliver; any of "pin.published", "pin.failed". | |
| secret | Yes | Shared secret of at least 16 characters used to sign deliveries (HMAC-SHA256 in X-PinBridge-Signature). | |
| is_enabled | No | false registers the endpoint without sending deliveries yet. |