Skip to main content
Webhooks deliver real-time notifications when emails are delivered, opened, clicked, bounced, or marked as spam. The $lettr->webhooks() service manages your webhook endpoints programmatically. For the event payload format and signature verification, see Webhooks.

List Webhooks

API Reference

GET /webhooks

Create a Webhook

Use WebhookEventsMode::All to receive every event type (no events array needed), or WebhookEventsMode::Selected with an explicit events array for a subset. For authenticated endpoints, set authType to WebhookAuthType::Basic or WebhookAuthType::OAuth2 and supply the matching credential fields (authUsername/authPassword or the oauth* fields).

API Reference

POST /webhooks

Get Webhook Details

API Reference

GET /webhooks/

Update a Webhook

All fields are optional — only the ones you set are sent:

API Reference

PATCH /webhooks/

Delete a Webhook

API Reference

DELETE /webhooks/

What’s Next

Webhook Events

Event types and payload format

Webhook Authorization

Verify webhook authenticity