Webhooks
Webhooks allow you to receive real-time HTTP notifications when events happen in your Emailit account, such as when an email is delivered, bounced, or when a contact is created.
Instead of polling the API for changes, webhooks push data to your server as events occur, enabling you to build reactive integrations and workflows.
How it works
- You create a webhook endpoint in your application that accepts
POSTrequests - You register the URL in the Emailit dashboard or via the API
- When a subscribed event occurs, Emailit sends a
POSTrequest to your URL with the event payload - Your endpoint responds with a
2xxstatus code to acknowledge receipt
Event structure
Every webhook event follows a consistent structure:
{
"event_id": "evt_2bH7kNwP5mQaV1sXgIdKe6pZr",
"type": "email.delivered",
"data": {
"object": {
...
}
}
}
Event structure
{
"event_id": "evt_2bH7kNwP5mQaV1sXgIdKe6pZr",
"type": "email.delivered",
"data": {
"object": {
...
}
}
}
| Field | Description |
|---|---|
event_id | Unique identifier for this event |
type | The event type (e.g. email.delivered, contact.created) |
data.object | The resource object associated with the event |
Available events
Emailit sends webhook notifications for the following resource types:
- Emails — delivery lifecycle events (accepted, delivered, bounced, etc.)
- Domains — domain creation, updates, and deletion
- Audiences — audience management events
- Subscribers — subscriber lifecycle events
- Contacts — contact management events
- Templates — template creation, updates, and deletion
- Suppressions — suppression list changes
- Email Verifications — verification results
- Email Verification Lists — bulk verification list events
See Event Types for the complete list.
Next steps
- Event Types — Full list of all available event types
- Webhook Requests — How webhook HTTP requests are structured
- Request Signature — Verify webhook authenticity using signatures