Domain creation and management
Domains authenticate and verify senders so recipients know the email comes from a genuine source. For endpoints to create and manage domains, see API reference > Domains.
1. Creating a new domain
Send a POST request to https://api.brevo.com/v3/senders/domains to create a new domain. Use the cURL request below:
Add your API key in the api-key header. This endpoint has one body parameter:
Response
Sample success response:
Sample bad request response:
Response codes:
2. Getting the list of your domains
Send a GET request to https://api.brevo.com/v3/senders/domains to retrieve the domains you’ve created. Use the cURL request below:
No attributes for getting the list of your domains
This endpoint takes no parameters. The request uses your API key to retrieve and return the domains you’ve created.
Response
The response returns all the domains you’ve created. Sample JSON:
Response codes:
3. Delete a domain
Send a DELETE request to https://api.brevo.com/v3/senders/domains/{domainName} to delete a domain. Insert the domain name in the endpoint URL as shown below:
A null response indicates the domain was deleted. This endpoint takes only the domainName attribute:
Response