Webhooks

Get webhook stats

get

Get stats for a webhook

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
get
/webhooks/{id}/stats

Get all webhooks

get

Get all webhooks for the current business

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
get
/webhooks

Delete a webhook

delete

Delete a webhook for the current business

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
delete
/webhooks/{id}

No content

Update a webhook

patch

Update a webhook for the current business

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
urlstring · url · max: 2048Required

The URL where webhook events will be sent. Must be a valid URL with a TLD.

Example: https://example.com/webhooks
descriptionstring · max: 1000Optional

Optional description for this webhook

isActivebooleanOptional

Whether the webhook is active

Example: true
Responses
patch
/webhooks/{id}

Get a webhook by id

get

Get a webhook by id

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
get
/webhooks/{id}

Create a new webhook

post

Create a new webhook for the current business

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
urlstring · url · max: 2048Required

The URL where webhook events will be sent. Must be a valid URL with a TLD.

Example: https://example.com/webhooks
descriptionstring · max: 1000Optional

Optional description for this webhook

isActivebooleanOptional

Whether the webhook is active

Default: trueExample: true
Responses
chevron-right
201

The webhook has been successfully created.

application/json
idstringRequired

Unique identifier for the webhook

Example: 123e4567-e89b-12d3-a456-426614174000
urlstringRequired

The URL where webhook events will be sent

Example: https://example.com/webhooks
descriptionobjectRequired

Optional description for this webhook

isActivebooleanRequired

Whether the webhook is active

Example: true
createdAtstring · date-timeRequired

When the webhook was created

Example: 2023-01-01T00:00:00.000Z
updatedAtstring · date-timeRequired

When the webhook was last updated

Example: 2023-01-01T12:00:00.000Z
post
/webhooks

Get all supported webhook events

get

Get all supported webhook events

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
get
/webhooks/events

Get all attempts for a webhook

get

Get all attempts for a webhook

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
get
/webhooks/{id}/attempts

Send example message

post

Send example message to a webhook

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
eventTypestringRequired

The event type to send

Example: transaction.updated
Responses
chevron-right
201

The message ID

application/json
messageIdstringRequired

The message ID

Example: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
post
/webhooks/{id}/send-example

Get endpoint secret

get

Get the secret for a webhook endpoint

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
get
/webhooks/{id}/secret

Last updated