Skip to content

Webhooks

Webhooks and events

Receive in your application every delivery event, every received email and every change of contact, form, automation, broadcast or domain: configuration, events, payloads, redelivery.

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 a full_access key, 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

TypeWhenrecipientdetails
email.sentthe message is handed to the mail enginenull{recipients} (count)
email.deliveredthe recipient's server accepted itaddress{smtp_reply}
email.deferredtemporary refusal, another attempt plannedaddress{smtp_reply}
email.bouncedpermanent refusal, or non-delivery report receivedaddress{smtp_reply} (and source: "report")
email.failedgiven up (temporary refusal until the end, error, all suppressed)address or null{smtp_reply} or {error}
email.suppressedrecipient on the suppression list, not sentaddress{}
email.canceledcanceled (by the application, key revoked, broadcast stopped)null{reason}
email.complainedthe recipient reported it as spam (ARF report)address if known{smtp_reply, source: "report"}
email.openedfirst open (tracking enabled on the key)address if a single recipient{}
email.clickedfirst click on a link (tracking enabled)address if a single recipient{url}
email.receivedan email arrives in the mailbox (personal key with receiving)see below
webhook.test"Test" button, or POST /api/v1/webhooks/{id}/testdata: {}

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

JSON
{
  "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.

TypeWhendata
contact.createdcontact created: API, console, import, form, public pagecontact
contact.updatedaddress, first name, last name, unsubscribe or properties changedcontact
contact.subscribedcontact created subscribed, or resubscribed (unsubscribed back to false): subscriptionscontact
contact.unsubscribedcontact moved to unsubscribed: true (in addition to contact.updated)contact
contact.confirmeddouble opt-in signup confirmed by clicking the linksignup
contact.deletedcontact deletedcontact, as it was before deletion
form.submittedsignup received by a form: waiting for confirmation, or confirmed right away without double opt-insignup
form.confirmedsignup confirmed (double opt-in link, or right away without it)signup
automation.starteda contact enters an automationrun
automation.completedrun finished: last step donerun
automation.stoppedrun stopped: false condition, unsubscribe, contact deletedrun
broadcast.startedbroadcast started: recipients frozen, status queuedbroadcast
broadcast.sentall the broadcast's messages handed to the sending queue, status sentbroadcast
broadcast.canceledrunning broadcast canceledbroadcast
domain.verifieddomain moved to verifieddomain
domain.faileddomain moved to failed, or to temporary_failure after having been verifieddomain

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):

dataFields
contactid, email, first_name, last_name, unsubscribed, created_at, updated_at, domain, source
signupid, form_id, email, status (pending, confirmed), contact_id, created_at, confirmed_at, domain, source
runid, automation_id, automation_name, contact_id, email, status (active, done, stopped), started_at, finished_at, domain
broadcastid, name, subject, segment_id, status, scheduled_at, started_at, sent_at, domain
domainid, name, status, kind, verified_at

A contact created:

JSON
{
  "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:

JSON
{
  "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:

TypeWhendata
contact.subscribedcontact created subscribed, or resubscribed (unsubscribed back to false)contact + source
contact.unsubscribedunsubscribed from every broadcast (unchanged)contact + source
contact.confirmeddouble opt-in signup confirmed by the clicksignup + 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:

sourcePath
apiyour server's API (/newsletter/subscribe, /newsletter/unsubscribe, /contacts)
public_apibrowser API (public key mlk_pub_…)
forma form's hosted page, or its embed code
preferences_pagedefault preferences page (unsubscribe link)
list_unsubscribeone-click unsubscribe through the List-Unsubscribe header
adminconsole
importCSV import
cleanupinactive contact cleanup
systemother 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.

JSON
{
  "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:

CaseEvents
signup without double opt-inform.submitted + form.confirmed + contact.created + contact.subscribed
double opt-in, when the form is sentform.submitted
double opt-in, when the link is clickedform.confirmed + contact.confirmed + contact.created (or contact.updated) + contact.subscribed
resubscribing an unsubscribed contactcontact.updated + contact.subscribed
unsubscribing from everythingcontact.updated + contact.unsubscribed
unsubscribing from one topic onlyno 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.

JSON
{
  "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 2xx within 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-Id you 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, except webhook.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.

Esc