Sample - Stripe API
GET/v1/webhook_endpoints/{webhook_endpoint}

Retrieve a webhook endpoint

Retrieves the webhook endpoint identified by its ID. Use expand to include additional fields in the response when needed.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
webhook_endpointstringrequired
The unique identifier of the webhook endpoint. Must be no more than 5000 characters.
expandarray<string>optional
Specifies response fields to expand. Each value can contain up to 5000 characters.

2 status codes
200Returns the webhook endpoint object, including its URL, enabled events, status, metadata, creation time, and unique identifier.
api_versionstringoptional
The API version events are rendered as for this webhook endpoint.
applicationstringoptional
The ID of the associated Connect application.
createdintegerrequired
Time at which the object was created. Measured in seconds since the Unix epoch.
descriptionstringoptional
An optional description of what the webhook is used for.
enabled_eventsarray<string>required
The list of events to enable for this endpoint. `['*']` indicates that all events are enabled, except those that require explicit selection.
idstringrequired
Unique identifier for the object.
livemodebooleanrequired
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectrequired
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:webhook_endpoint
secretstringoptional
The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
statusstringrequired
The status of the webhook. It can be `enabled` or `disabled`.
urlstringrequired
The URL of the webhook endpoint.
defaultReturned when the API reports an error; the response contains an `error` object with a required `type`.
errorobjectrequired

Error handling

The webhook_endpoint identifier must be no more than 5000 characters. Each expand value must be no more than 5000 characters when supplied.