Update the details of an event destination.
Learn more about calling API v2 endpointsParameters
- descriptionstring
An optional user-defined description of the destination’s purpose; it does not control routing.
- enabled_
eventsarray of strings The list of event types enabled for delivery to this destination. Event scopes are configured when the destination is created.
- includearray of enums
Include the normally redacted
webhook_in the response.endpoint. url Possible enum valueswebhook_endpoint. url Include the normally redacted
webhook_in the response.endpoint. url - metadatamap
Metadata.
- namestring
A user-defined label for identifying the destination; it does not control routing.
- webhook_
endpointobject New delivery target for the webhook endpoint. Live mode requires HTTPS; sandbox mode also supports HTTP.
Returns
Returns an Event Destination object.
The resource wasn’t found.
An idempotent retry occurred with different request parameters.
curl -X POST https://api.stripe.com/v2/core/event_destinations/ed_test_61RM8ltWcTW4mbsxf16RJyfa2xSQLHJJh1sxm7H0KVT6 \ -H "Authorization: Bearer sk_test_BQokikJOvBiI2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2" \ -H "Stripe-Version: 2026-09-30.endive" \ --json '{ "description": "A better description", "enabled_events": [ "v1.billing.meter.error_report_triggered", "v1.billing.meter.no_meter_found" ], "include": [ "webhook_endpoint.url" ] }'{ "id": "ed_test_61RM8ltWcTW4mbsxf16RJyfa2xSQLHJJh1sxm7H0KVT6", "object": "v2.core.event_destination", "created": "2024-10-22T16:20:09.931Z", "description": "A better description", "enabled_events": [ "v1.billing.meter.error_report_triggered", "v1.billing.meter.no_meter_found" ], "event_payload": "thin", "events_from": [ "@self" ], "livemode": false, "metadata": {}, "name": "My Event Destination", "snapshot_api_version": null, "status": "disabled", "status_details": { "disabled": { "reason": "user" } }, "type": "webhook_endpoint", "updated": "2024-10-22T16:25:48.976Z", "webhook_endpoint": { "signing_secret": null, "url": "https://example.com/my/webhook/endpoint" }}Retrieves the details of an event destination.
Learn more about calling API v2 endpointsParameters
- includearray of enums
Additional fields to include in the response.
Possible enum valueswebhook_endpoint. url Include the normally redacted
webhook_in the response.endpoint. url
{ "id": "ed_test_61RM8ltWcTW4mbsxf16RJyfa2xSQLHJJh1sxm7H0KVT6", "object": "v2.core.event_destination", "created": "2024-10-22T16:20:09.931Z", "description": "This is my event destination, I like it a lot", "enabled_events": [ "v1.billing.meter.error_report_triggered" ], "event_payload": "thin", "events_from": [ "@self" ], "livemode": false, "metadata": {}, "name": "My Event Destination", "snapshot_api_version": null, "status": "disabled", "status_details": { "disabled": { "reason": "user" } }, "type": "webhook_endpoint", "updated": "2024-10-22T16:22:02.524Z", "webhook_endpoint": { "signing_secret": null, "url": null }}Lists all event destinations.
Learn more about calling API v2 endpointsParameters
- includearray of enums
Include the normally redacted
webhook_in each returned destination.endpoint. url Possible enum valueswebhook_endpoint. url Include the normally redacted
webhook_in the response.endpoint. url - limitinteger
The page size.
- pagestring
The requested page.
Returns
Response attributes
- dataarray of objects
List of event destinations.
- next_
page_ urlnullable string URL to fetch the next page of the list. If there are no more pages, the value is null.
- previous_
page_ urlnullable string URL to fetch the previous page of the list. If there are no previous pages, the value is null.
{ "data": [ { "id": "ed_test_61RM8ltWcTW4mbsxf16RJyfa2xSQLHJJh1sxm7H0KVT6", "object": "v2.core.event_destination", "created": "2024-10-22T16:20:09.931Z", "description": "This is my event destination, I like it a lot", "enabled_events": [ "v1.billing.meter.error_report_triggered" ], "event_payload": "thin", "events_from": [ "@self" ], "livemode": false, "metadata": {}, "name": "My Event Destination", "snapshot_api_version": null, "status": "disabled", "status_details": { "disabled": { "reason": "user" } }, "type": "webhook_endpoint", "updated": "2024-10-22T16:22:02.524Z", "webhook_endpoint": { "signing_secret": null, "url": null } } ], "next_page_url": null, "previous_page_url": null}