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.
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:
Send a GET request to https://api.brevo.com/v3/senders/domains to retrieve the domains you’ve created. Use the cURL request below:
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:
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