Skip to main content
POST
Create a connection webhook

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication.

Body

application/json

Input serializer for POST /webhooks.

event_type
enum<string>
required

The event to subscribe to.

  • connection.expiry_scheduled - Expiry Scheduled
Available options:
connection.expiry_scheduled
callback_url
string<uri>
required

HTTPS URL that signed events are POSTed to.

Callbacks

POST
{$request.body#/callback_url}connectionEvent

Body

application/json

Outbound event payload POSTed to callback_url (documentation only).

type
enum<string>
required

The event type. Matches the event_type this webhook subscribed to.

  • connection.expiry_scheduled - Expiry Scheduled
Available options:
connection.expiry_scheduled
expires_at
string<date-time>
required

ISO 8601 timestamp when the connection is scheduled to expire.

data
object
required

Event-specific details.

Response

200

Event acknowledged. Any 2xx status is accepted.

Response

Created. Includes the signing secret (shown once).

Output serializer for POST 201. Includes the signing secret (returned once only).

id
string<uuid>
required
read-only

Unique webhook identifier (UUID).

event_type
enum<string>
required

The event type this webhook is subscribed to.

  • connection.expiry_scheduled - Expiry Scheduled
Available options:
connection.expiry_scheduled
callback_url
string<uri>
required
read-only

HTTPS URL that signed events are POSTed to.

is_active
boolean
required
read-only

Whether the webhook is active. Inactive webhooks do not receive events.

created_at
string<date-time>
required
read-only

ISO 8601 timestamp when the webhook was created.

updated_at
string<date-time>
required
read-only

ISO 8601 timestamp when the webhook was last updated.

secret
string
required
read-only

Standard Webhooks signing secret (whsec_…). Shown once, at creation.