Skip to main content
Fetch a single endpoint by id, including its current URL, enabled state, and subscribed event types. GET /v1/webhooks/{id}

Path parameters

id
string
required
The webhook endpoint id, e.g. wh_3kQ9p2.

Request

curl https://api.drin.run/v1/webhooks/wh_3kQ9p2 \
  -H "Authorization: Bearer $DRIN_API_KEY"

Response

Returns 200 OK with the endpoint. signingSecret is redacted to an empty string. An id that is unknown or not visible to this project returns 404 not_found.
200 OK
{
  "id": "wh_3kQ9p2",
  "url": "https://example.com/hooks/drin",
  "enabled": true,
  "eventTypes": ["delivery", "bounce", "complaint"],
  "signingSecret": ""
}