# Retrieve a webhook endpoint Retrieves the webhook endpoint with the given ID. ## Returns Returns a webhook endpoint if a valid webhook endpoint ID was provided. Raises [an error](https://docs.stripe.com/api/webhook_endpoints/retrieve.md#errors) otherwise. ```php $stripe = new \Stripe\StripeClient('<>'); $webhookEndpoint = $stripe->webhookEndpoints->retrieve( '{{WEBHOOK_ENDPOINT_ID}}', [] ); ``` ### Response ```json { "id": "we_1Mr5jULkdIwHu7ix1ibLTM0x", "object": "webhook_endpoint", "api_version": null, "application": null, "created": 1680122196, "description": null, "enabled_events": [ "charge.succeeded", "charge.failed" ], "livemode": false, "metadata": {}, "status": "enabled", "url": "https://example.com/my/webhook/endpoint" } ```