#Wik
1 messages · Page 1 of 1 (latest)
Hi there, you mean you want to programmaticaly get the list of events that an endpoint is listening to?
Yes. To give you some context; recently we added a feature that was supposed to start when an event is fired. In dev some developers listen to all webhooks instead of just the chosen one and we forgot to add the event to the list in prod. We want to avoid this in the future, hence my question.
You can retrieve the webhook endpoint (https://stripe.com/docs/api/webhook_endpoints/retrieve?lang=node#retrieve_webhook_endpoint), and get the list of events in enabled_events (https://stripe.com/docs/api/webhook_endpoints/object?lang=node#webhook_endpoint_object-enabled_events)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Great, thank you!