Skip to main content
GET
/
v1
/
webhooks
/
{id}
Get Webhook
curl --request GET \
  --url https://api.example.com/v1/webhooks/{id}

Get Webhook

Retrieve details of a specific webhook by its ID.
id
string
required
The ID of the webhook to retrieve.

Request

curl https://api.lettr.dev/v1/webhooks/wh_123abc \
  -H "Authorization: Bearer le_xxxxxxxxxxxx"

Response

{
  "id": "wh_123abc",
  "object": "webhook",
  "url": "https://example.com/webhooks/lettr",
  "events": ["email.delivered", "email.bounced", "email.opened"],
  "status": "active",
  "lastDeliveryAt": "2024-01-15T14:30:00Z",
  "lastDeliveryStatus": "success",
  "failureCount": 0,
  "createdAt": "2024-01-15T10:30:00Z"
}

Webhook Status

StatusDescription
activeWebhook is active and receiving events
failingRecent deliveries have failed
disabledWebhook is disabled due to repeated failures