v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-015891,4406.1 MB

Create a webhook endpoint

A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.

post/v1/webhook_endpoints

Response

Successful response.

api_versionstring nullable

The API version events are rendered as for this webhook endpoint.

applicationstring nullable

The ID of the associated Connect application.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

descriptionstring nullable

An optional description of what the webhook is used for.

enabled_eventsstring[] required

The list of events to enable for this endpoint. ['*'] indicates that all events are enabled, except those that require explicit selection.

idstring required

Unique identifier for the object.

livemodeboolean required

If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.

metadataobject required

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

object'webhook_endpoint' required

String representing the object's type. Objects of the same type share the same value.

secretstring

The endpoint's secret, used to generate webhook signatures. Only returned at creation.

statusstring required

The status of the webhook. It can be enabled or disabled.

urlstring required

The URL of the webhook endpoint.