Trasforma le email in arrivo in JSON
Qualsiasi email inviata a *@reply.yourdomain.com viene ricevuta da Brevo, analizzata e inviata con una POST al tuo URL webhook come JSON.

Come funziona
curl --request POST \
--url https://api.brevo.com/v3/webhooks \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"type": "inbound",
"events": ["inboundEmailProcessed"],
"url":"https://hook.znapi.cc/ix0v9y",
"domain": "reply.yourdomain.com",
"description":"Webhook to receive replies"
}'
Elenca prima i miei webhook inbound esistenti, così non ne crei un duplicato. Poi usa lo strumento webhooks_management_create_webhook per creare un webhook inbound per reply.mydomain.com che invia a https://myapp.example/inbound. Usa il tipo inbound e l'evento inboundEmailProcessed.
curl --request GET \
--url https://api.brevo.com/v3/inbound/events \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Elenca le email in arrivo che Brevo ha ricevuto questa settimana per il mio dominio di risposta.
L'inbound parsing usa gli stessi endpoint dei webhook degli eventi, con type inbound e il tuo dominio di ricezione.
Configura l'inbound parsing
Scegli un sottodominio di ricezione
Scegli un dominio diverso da quello di invio, come reply.yourdomain.com, e verifica il tuo dominio con Brevo.
Aggiungi due record MX
Punta reply.yourdomain.com a inbound1.sendinblue.com con priorità 10 e a inbound2.sendinblue.com con priorità 20. La propagazione del DNS può richiedere ore.
Crea il webhook
Fai POST su /v3/webhooks con type inbound, l'evento inboundEmailProcessed, il tuo URL e il dominio di ricezione.
Gestisci il payload
ExtractedMarkdownMessage contiene la risposta senza la firma. Recupera un allegato con il suo DownloadToken e segui ogni email ricevuta con gli endpoint degli eventi inbound.



