Domain authentication API
Create a domain with POST /v3/senders/domains, and the response lists the dkim_record, brevo_code and dmarc_record to publish.

How it works
curl --request POST \
--url https://api.brevo.com/v3/senders/domains \
--header 'accept: application/json' \
--header 'api-key:' \
--header 'content-type: application/json' \
--data '
{
"name": "mycompany.com"
}
'
Add mycompany.com as a sending domain, then list the DNS records I need to publish for it.
curl --request GET \
--url https://api.brevo.com/v3/senders/domains/mycompany.com \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Show the DNS records Brevo needs for my sending domain and which ones are still missing.
{
"domain": "mycompany.com",
"verified": false,
"authenticated": false,
"dns_records": {
"dkim_record": {
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeMVIzrCa3T14JsNY0IRv5/2V1/v2itlviLQBwXsa7shBD6TrBkswsFUToPyMRWC9tbR/5ey0nRBH0ZVxp+lsmTxid2Y2z+FApQ6ra2VsXfbJP3HE6wAO0YTVEJt1TmeczhEd2Jiz/fcabIISgXEdSpTYJhb0ct0VJRxcg4c8c7wIDAQAB",
"host_name": "mail._domainkey.",
"status": false
},
"brevo_code": {
"type": "TXT",
"value": "brevo-code:e760f020e6d438149540cfc757e99b5a",
"host_name": "",
"status": false
},
"dmarc_record": {
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:[email protected]",
"host_name": "_dmarc",
"status": false
}
}
}
curl --request PUT \
--url https://api.brevo.com/v3/senders/domains/mycompany.com/authenticate \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Authenticate mycompany.com and tell me whether Brevo found my DNS records.
Enter your API key as the api-key value. The JSON panel shows Brevo's response.
Domain setup steps
Create the domain
POST /v3/senders/domains with the name, the domain name to be added. The response says to add the DNS records and lists dkim_record, brevo_code and dmarc_record.
Publish the records
Add the DNS records Brevo shows you to your domain provider account.
Check the status
GET /v3/senders/domains/{domainName} to validate the domain configuration. Each record carries a status flag that says whether it is properly configured.
Authenticate
Call PUT /v3/senders/domains/{domainName}/authenticate to authenticate the domain. A 400 is returned for invalid or missing parameters, or a value mismatch between DKIM records and the Brevo code.



