cURL
curl --request GET \ --url https://api.example.com/v1/webhooks/{id}
Retrieve a webhook by ID
curl https://api.lettr.dev/v1/webhooks/wh_123abc \ -H "Authorization: Bearer le_xxxxxxxxxxxx"
{ "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" }
active
failing
disabled