Eventi email, inviati al tuo server
Brevo invia una richiesta HTTP POST al tuo URL in tempo reale quando un'email viene consegnata, aperta, cliccata o va in bounce.

Come funziona
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.
La chiamata di creazione protegge il webhook con un token Bearer. Il payload mostra un evento delivered.
Webhook email: i fatti
Webhook. Brevo invia con POST gli eventi email all'URL del tuo webhook. Il numero di webhook, di marketing e transazionali, è limitato a 40.
Tipi. Brevo ha webhook transazionali e webhook di marketing.
Piano Free. Il piano Free include 300 invii email al giorno e fino a 100.000 contatti archiviati. Tutti i piani Brevo ti danno accesso alle API RESTful, a SMTP e ai webhook in uscita per le email transazionali.
Hosting in UE. I server di hosting su cui Brevo elabora e archivia i propri database si trovano tutti nell'Unione Europea. Brevo utilizza OVH in Francia e Germania e i dati sono archiviati su Google Cloud in Belgio.