Skip to Content
Docs
Webhook endpoints

List webhook endpoints

GET/webhook_endpoints

Retrieves the list of webhook endpoints. Their secrets are not returned.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Returns

Returns a list of webhook endpoint objects.

resourcestringRequired

String representing the object's type.

One of webhook_endpoints.

dataarray of objectsRequired

The webhook endpoints, without their secrets.

Show 6 child attributesHide child attributes
idstringRequired

Unique identifier for the webhook endpoint.

resourcestringRequired

String representing the object's type.

One of webhook_endpoint.

enabledbooleanRequired

Whether events are sent to the webhook endpoint.

event_typesarray of stringsRequired

The types of the events sent to the webhook endpoint.

namestringRequired

The name of the webhook endpoint.

urlstringRequired

The URL events are sent to.

Errors

401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?