Webhooks

Get webhook stats

get

Get stats for a webhook

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
200

Stats for the webhook

application/json
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
200

List of webhooks for the current business

application/json
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
200

The webhook has been successfully updated

application/json
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
200

Returns the webhook with the given ID

application/json
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
post
/webhooks

Get all supported webhook events

get

Get all supported webhook events

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of supported webhook events

application/json
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
200

List of attempts for a webhook

application/json
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
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
200

The secret for the webhook endpoint

application/json
Responsestring
get
/webhooks/{id}/secret

Last updated