Domain authentication and validation
After creating and managing your domains, you can authenticate and validate them. You need a valid domain name to authenticate. For the public endpoints, see API reference > Domains.
1. Validate domain configuration
Send a GET request to https://api.brevo.com/v3/senders/domains/{domainName} to validate your domain. Use the cURL request below:
This endpoint returns the configuration of a specific domain. The only attribute is domainName, which you append to the URL in the cURL request:
Response
Sample response:
The JSON response shows the domain configuration along with verification and authentication status. Response codes:
2. Authenticate a domain
Send a PUT request to https://api.brevo.com/v3/senders/domains/{domainName}/authenticate to authenticate a domain. Use the cURL request below:
Add the domainName attribute to the URL as in https://api.brevo.com/v3/senders/domains/{domainName}/authenticate. The attribute:
How to get your domain verified?
Three ways to authenticate your domain:
- DNS records: Add the Brevo record to verify your domain, then configure the remaining DNS records to authenticate it.
- Host a file: Host a file in the root directory of the domain.
- Send an email: Send an email containing a verification code to confirm the domain is authentic.
Response
Sample response:
Response codes: