Webhook endpoints
Retrieve a webhook endpoint
GET
/webhook_endpoints/{id}Retrieves the details of a webhook endpoint. Its secret is not returned.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Path parameters
idstringRequiredThe identifier of the webhook endpoint.
Returns
Returns the webhook endpoint object.
idstringRequiredUnique identifier for the webhook endpoint.
resourcestringRequiredString representing the object's type.
enabledbooleanRequiredWhether events are sent to the webhook endpoint.
event_typesarray of stringsRequiredThe types of the events sent to the webhook endpoint.
namestringRequiredThe name of the webhook endpoint.
urlstringRequiredThe URL events are sent to.
Errors
400Invalid request parameters.
401The 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).403The 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.404Webhook endpoint not found.
500Internal server error.
503Service unavailable. Retry after the number of seconds in
Retry-After, or after a few seconds when there's none.Was this page helpful?