Email events, posted to your server
Brevo sends an HTTP POST to your URL in real time when an email is delivered, opened, clicked or bounces.

How it works
curl --location 'https://api.brevo.com/v3/webhooks' \
--header 'content-type: application/json' \
--header 'api-key: xkeysib-{api-key}' \
--data '{
"description" : "string",
"url" : "https://example.com/notifyurl3234121232",
"events" : ["sent"],
"type" : "transactional",
"auth":{
"type":"bearer",
"token":"client-token"
}
}'
Create a webhook that posts delivery, open and click events to https://myapp.example/hooks.
{
"event": "delivered",
"email": "[email protected]",
"id": 26224,
"date": "YYYY-MM-DD HH:mm:ss",
"ts": 1598634509,
"message-id": "<[email protected]>",
"ts_event": 1598034509,
"subject": "Subject Line",
"tag": "[\"transactionalTag\"]",
"sending_ip": "185.41.28.109",
"ts_epoch": 1598634509223,
"tags": [
"myFirstTransactional"
]
}
# No request body.
curl --request GET \
--url https://api.brevo.com/v3/smtp/statistics/events \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Show my transactional email stats for the last 7 days, list contacts blocked or hard-bounced this week, and tell me which senders and domains are verified.
The create call secures the webhook with a Bearer token. The payload shows a delivered event.
Set up a webhook
Where does Brevo send email events?
Brevo sends email events to a URL on your side. When an event occurs, an HTTP POST request is sent to the given URL in real time.
How do I create a Brevo webhook?
POST /v3/webhooks creates a webhook. The url is required. The events field lists the events triggering the webhook. The type is transactional by default.
How do I match a webhook event to the email I sent?
When sending a transactional email through Brevo, pass the tags object to specify a custom flag or identifier. This helps you query received events on your side.
How do I protect the webhook URL?
Whitelist the Brevo webhook IP ranges. If your URL supports authentication, set it when you create the webhook: username and password in the url, a bearer token in the auth object, or custom headers.



