Retrieve a webhook endpoint
GET
/v1/webhook_endpoints/{id}Authorization
bearerAuth AuthorizationBearer <token>
Secret API key as a bearer token: Authorization: Bearer sk_live_….
Test keys (sk_test_…) are refused with 401 test_mode_unavailable.
Keys are issued per project in the dashboard. Never expose a secret
key in browser or mobile code.
In: header
Path Parameters
id*string
Webhook endpoint id (we_…).
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/webhook_endpoints/we_t5kz2m7qx3wn4vbc6rjy2dfa6h"{
"id": "we_t5kz2m7qx3wn4vbc6rjy2dfa6h",
"object": "webhook_endpoint",
"url": "https://yourshop.mn/webhooks/wire",
"enabled_events": [
"*"
],
"status": "enabled",
"livemode": true,
"created": 1791770400
}{
"error": {
"type": "api_error",
"code": "test_mode_unavailable",
"message": "test keys are not accepted by this API; use a live secret key",
"request_id": "req_8f3a1c9e5b7d2f4a6c0e9b1d"
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "no such payment_intent",
"request_id": "req_8f3a1c9e5b7d2f4a6c0e9b1d"
}
}