Using sandbox mode
Test transactional emails without sending them using sandbox mode
Use sandbox mode to test transactional email requests without sending actual emails. This lets you validate your API integration in a safe testing environment.
How it works
Add the X-Sib-Sandbox header with the value drop to your request. In sandbox mode:
- No emails are sent to recipients
- No email logs are created in your Brevo account
- You receive a success response indicating the API endpoint is working correctly
Example request
Response
You receive a 201 success response with a messageId, but no email is sent:
Sandbox mode only validates the API request format. To test actual email delivery, send emails without the sandbox header.