Docs
API · webhooks

Retrieve a webhook

Fetch a single endpoint by id, including its current URL, enabled state, and subscribed event types.

GET/v1/webhooks/{id}

01 Path parameters

idstringRequired
The webhook endpoint id, e.g. wh_3kQ9p2.

02 Request

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

03 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": ""
}