A webhook sends a JSON POST to your HTTPS address for each selected event. Each request is signed.
Configuring
An endpoint is an address and the selected events. Each API key has up to 10 of them:
- through the API:
/api/v1/webhooks, with afull_accesskey, for all the key's endpoints, their delivery log and replay (Managing webhooks through the API); - in the console, the key's first endpoint: application key in Administration › API keys, the key, then Webhook; personal key in Developers › Webhooks in the mail app.
Enter the address (https://, at most 2,000 characters) and check the events. The signing secret (whsec_…) is shown only once, at creation. Test sends a webhook.test event. The last 20 deliveries are shown in the console with their status ("Recent deliveries"). To change the secret, see Changing the secret.
The events
| Type | When | recipient | details |
|---|---|---|---|
email.sent | the message is handed to the mail engine | null | {recipients} (count) |
email.delivered | the recipient's server accepted it | address | {smtp_reply} |
email.deferred | temporary refusal, another attempt planned | address | {smtp_reply} |
email.bounced | permanent refusal, or non-delivery report received | address | {smtp_reply} (and source: "report") |
email.failed | given up (temporary refusal until the end, error, all suppressed) | address or null | {smtp_reply} or {error} |
email.suppressed | recipient on the suppression list, not sent | address | {} |
email.canceled | canceled (by the application, key revoked, broadcast stopped) | null | {reason} |
email.complained | the recipient reported it as spam (ARF report) | address if known | {smtp_reply, source: "report"} |
email.opened | first open (tracking enabled on the key) | address if a single recipient | {} |
email.clicked | first click on a link (tracking enabled) | address if a single recipient | {url} |
email.received | an email arrives in the mailbox (personal key with receiving) | see below | |
webhook.test | "Test" button, or POST /api/v1/webhooks/{id}/test | data: {} |
These events concern the sends of the key: any key can subscribe to them. email.deferred is called delivery_delayed in last_event (Resend's name). Broadcast messages produce the same events, with the broadcast_id tag in tags; automation messages, with automation_id and step. The same events can be read again through the API in the sending event log.
The other events (contacts, forms, automations, broadcasts, domains) are described below.
Sending event payload
{
"type": "email.delivered",
"created_at": "2026-11-12T09:30:02.481Z",
"data": {
"email_id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
"recipient": "client@example.org",
"from": "notifications@example.com",
"subject": "Your code: 482913",
"tags": { "category": "otp" },
"details": { "smtp_reply": "250 2.0.0 OK" }
}
}created_at is the time of the event. Headers of each request: Content-Type: application/json, User-Agent: Voaaro-Webhooks/1, Voaaro-Event-Id (unique ID of the delivery), Voaaro-Event-Type, Voaaro-Signature.
Contacts, forms, automations, broadcasts, domains
These events follow the scope of a full_access key: an application key receives those of the domains it covers (newsletters belong to the domain). A sending_access key cannot subscribe to them (422); domain.* is reserved for application keys.
| Type | When | data |
|---|---|---|
contact.created | contact created: API, console, import, form, public page | contact |
contact.updated | address, first name, last name, unsubscribe or properties changed | contact |
contact.subscribed | contact created subscribed, or resubscribed (unsubscribed back to false): subscriptions | contact |
contact.unsubscribed | contact moved to unsubscribed: true (in addition to contact.updated) | contact |
contact.confirmed | double opt-in signup confirmed by clicking the link | signup |
contact.deleted | contact deleted | contact, as it was before deletion |
form.submitted | signup received by a form: waiting for confirmation, or confirmed right away without double opt-in | signup |
form.confirmed | signup confirmed (double opt-in link, or right away without it) | signup |
automation.started | a contact enters an automation | run |
automation.completed | run finished: last step done | run |
automation.stopped | run stopped: false condition, unsubscribe, contact deleted | run |
broadcast.started | broadcast started: recipients frozen, status queued | broadcast |
broadcast.sent | all the broadcast's messages handed to the sending queue, status sent | broadcast |
broadcast.canceled | running broadcast canceled | broadcast |
domain.verified | domain moved to verified | domain |
domain.failed | domain moved to failed, or to temporary_failure after having been verified | domain |
These events go out whatever the path of the change (API, console, CSV import, public form, preferences page, background jobs) and only if the change is saved: a rolled-back write produces none. A change that changes nothing produces none either.
Shapes of data (ISO 8601 dates in UTC; domain is the scope's domain):
data | Fields |
|---|---|
| contact | id, email, first_name, last_name, unsubscribed, created_at, updated_at, domain, source |
| signup | id, form_id, email, status (pending, confirmed), contact_id, created_at, confirmed_at, domain, source |
| run | id, automation_id, automation_name, contact_id, email, status (active, done, stopped), started_at, finished_at, domain |
| broadcast | id, name, subject, segment_id, status, scheduled_at, started_at, sent_at, domain |
| domain | id, name, status, kind, verified_at |
A contact created:
{
"type": "contact.created",
"created_at": "2026-11-12T10:15:00.120Z",
"data": {
"id": "7c1d9e42-0a3b-4f6e-8d21-5b9f0c3e7a14",
"email": "ada@example.org",
"first_name": "Ada",
"last_name": null,
"unsubscribed": false,
"created_at": "2026-11-12T10:15:00Z",
"updated_at": "2026-11-12T10:15:00Z",
"domain": "example.com",
"source": "form"
}
}A confirmed signup:
{
"type": "form.confirmed",
"created_at": "2026-11-12T10:21:44.508Z",
"data": {
"id": "e3a0b6c1-9f27-4d58-a1c4-60f2d8b9e735",
"form_id": "2b8f4e10-6c3d-4a97-b5e2-19d7c0a4f863",
"email": "ada@example.org",
"status": "confirmed",
"contact_id": "7c1d9e42-0a3b-4f6e-8d21-5b9f0c3e7a14",
"created_at": "2026-11-12T10:15:00Z",
"confirmed_at": "2026-11-12T10:21:44Z",
"domain": "example.com",
"source": "form"
}
}A contact's properties are not in the payload: read them with GET /api/v1/contacts/{id} (Contacts).
Subscribes and unsubscribes
To follow who subscribes and unsubscribes, three events are enough:
| Type | When | data |
|---|---|---|
contact.subscribed | contact created subscribed, or resubscribed (unsubscribed back to false) | contact + source |
contact.unsubscribed | unsubscribed from every broadcast (unchanged) | contact + source |
contact.confirmed | double opt-in signup confirmed by the click | signup + source |
They go out whatever the path: your form, the hosted page, unsubscribing from your application, the preferences page, the mailbox's "Unsubscribe" button, the console, an import. The source field tells which:
source | Path |
|---|---|
api | your server's API (/newsletter/subscribe, /newsletter/unsubscribe, /contacts) |
public_api | browser API (public key mlk_pub_…) |
form | a form's hosted page, or its embed code |
preferences_page | default preferences page (unsubscribe link) |
list_unsubscribe | one-click unsubscribe through the List-Unsubscribe header |
admin | console |
import | CSV import |
cleanup | inactive contact cleanup |
system | other background jobs |
For contact.confirmed, source is the signup's (api, public_api or form). source is also in contact.created, contact.updated, contact.deleted, form.submitted and form.confirmed.
{
"type": "contact.subscribed",
"created_at": "2026-11-12T10:21:44.611Z",
"data": {
"id": "7c1d9e42-0a3b-4f6e-8d21-5b9f0c3e7a14",
"email": "ada@example.org",
"first_name": "Ada",
"last_name": null,
"unsubscribed": false,
"created_at": "2026-11-12T10:21:44Z",
"updated_at": "2026-11-12T10:21:44Z",
"domain": "example.com",
"source": "public_api"
}
}Equivalences
Nothing changes for an existing integration: contact.unsubscribed keeps its meaning and shape (with source added). What a signup produces:
| Case | Events |
|---|---|
| signup without double opt-in | form.submitted + form.confirmed + contact.created + contact.subscribed |
| double opt-in, when the form is sent | form.submitted |
| double opt-in, when the link is clicked | form.confirmed + contact.confirmed + contact.created (or contact.updated) + contact.subscribed |
| resubscribing an unsubscribed contact | contact.updated + contact.subscribed |
| unsubscribing from everything | contact.updated + contact.unsubscribed |
| unsubscribing from one topic only | no contact.unsubscribed: the contact stays subscribed to broadcasts |
Subscribing an address that is already subscribed produces no contact.subscribed. These events are signed and retried like the others (verifying the signature); only the domain's full_access keys can subscribe to them.
email.received
Sent for each new message arriving in the mailbox of a personal key with receiving enabled (mail.read scope), a few seconds after it arrives; not for drafts, sent messages, trash, or spam unless you asked for it.
{
"type": "email.received",
"created_at": "2026-11-12T08:00:03.120Z",
"data": {
"email_id": "Mb3a9c2e0",
"from": "client@example.org",
"from_name": "Ada",
"to": ["you@example.com"],
"cc": [],
"bcc": [],
"reply_to": [],
"subject": "Question about my order",
"created_at": "2026-11-12T08:00:01Z",
"sent_at": "2026-11-12T08:00:00Z",
"message_id": "<abc@example.org>",
"size": 18234,
"spam": false,
"trash": false,
"attachments": [
{ "id": "B42…", "filename": "photo.jpg", "content_type": "image/jpeg", "content_disposition": "attachment", "content_id": null, "size": 120400 }
]
}
}The message body and the attachments are not in the webhook: read them with GET /api/v1/emails/receiving/{email_id} (Receiving).
Responses, redelivery and retries
- Respond
2xxwithin 10 seconds. Any other response, a redirect (3xx, never followed) or a timeout counts as a failure. - After a failure, another attempt after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h, 12 h, 24 h: 9 attempts in total, over a little less than two days. The delivery is then marked as failed; the webhook itself stays active.
- Delivery is at least once: the same event can arrive twice. Ignore a
Voaaro-Event-Idyou have already processed. - The order of arrival is not guaranteed: rely on
created_at. - Private addresses (local network, loopback…) are refused: the webhook must be reachable on the Internet.
- A disabled endpoint (
status: disabled) receives nothing, exceptwebhook.test. - The delivery history is kept for 30 days; it can be read and replayed through the API (delivery log).
Do the heavy work after responding (job queue), to stay under 10 seconds.