Create a webhook endpoint
Creates a new outbound webhook subscription. The plaintext
secret_key is returned once in this response — persist it
immediately to verify incoming webhook signatures. Subsequent reads
return null for the secret. Pass an empty subscriptions array or
omit it to receive every event.
Required scope: write_webhooks (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
HTTPS destination URL. It cannot resolve to a private IP address outside development.
"https://example.com/webhooks/orders"
A label shown in the dashboard list.
"Order pipeline"
Defaults to true on create. Prefer the disable and enable endpoints to pause one.
Event names this endpoint receives. An empty list or ["*"] subscribes to every event; otherwise list exact names (order.completed) or patterns (order.*).
Response
webhook endpoint created — secret_key returned once

