Skip to main content
POST
Creating a new Webhook means registering a URL to receive updates for a specific event type. Once a resource is created or updated, your application will be notified via an HTTPS POST request with the event information.

Body

enum
required
The event type to be sent to this URL. See Webhook Event Types.
string
required
The URL receiving the Webhook event.
When testing your integration in a local environment, we recommend utilizing the following technologies for a seamless developer experience with Webhooks:
string
Secret token for request validation. Sent in the Authorization header of the Webhook, Base64-encoded by default or verbatim when auth_token_delivery_encoding is none.
Authorization Header Verification explains how to validate both Base64 and verbatim Authorization headers.
enum
Controls how Method encodes auth_token in outbound deliveries. null (default) and base64 Base64-encode the token before sending; none sends it unchanged. One of base64 or none
string
Secret token used for computing HMAC signature. Used to compute the HMAC signature in the method-webhook-signature header of the Webhook.
HMAC Verification – HMAC signature in the method-webhook-signature header of the webhook.
boolean
Whether to expand the event object in the Webhook payload. (default: false)
object
Custom HTTP headers to include on every delivery to this Webhook. Up to 10 allowlisted headers (values up to 1,024 characters). Header names are case-insensitive and stored lowercase; reserved headers such as Authorization and method-* cannot be set.

Returns

Returns the newly created Webhook object.