Webhooks

Get webhook stats

get

Get stats for a webhook

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

Stats for the webhook

application/json
successfulMessagesnumberRequired

The number of successful messages

Example: 100
failedMessagesnumberRequired

The number of failed messages

Example: 10
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
chevron-right
200

List of webhooks for the current business

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
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
chevron-right
200

The webhook has been successfully updated

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
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
chevron-right
200

Returns the webhook with the given ID

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
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
chevron-right
200

List of supported webhook events

application/json
eventsstring[]Required

List of supported webhook events

Example: ["transaction.updated"]
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
chevron-right
200

List of attempts for a webhook

application/json
urlstringRequired

The URL where the webhook was sent

Example: https://example.com/webhook/
responsestringRequired

Response body from the webhook endpoint

Example: {}
responseStatusCodenumberRequired

HTTP status code of the response

Example: 200
statusall ofRequired

Status of the webhook attempt

Example: SUCCESS
string · enumOptional

Status of the webhook attempt

Possible values:
msgIdstringRequired

Message ID

Example: msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
idstringRequired

Unique identifier for the attempt

Example: atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2
timestampstring · date-timeRequired

Timestamp when the attempt was made

Example: 2019-08-24T14:15:22Z
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
chevron-right
200

The secret for the webhook endpoint

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

Last updated