Key concepts
Overview
The Brevo API uses REST over HTTPS. All requests require authentication via an API key, and responses are returned as JSON. This guide covers the essentials before your first API call.
Base URL and versioning
All API requests use the base URL with version v3:
Authentication
Include your API key in the api-key header for every request. Generate an API key from your Brevo account settings.
See the authentication guide for setup instructions.
Making requests
Required headers
Every request must include:
content-type: application/json- Specifies JSON payload formatapi-key: YOUR_API_KEY- Your authentication token
Request methods
The API supports standard HTTP methods:
GET- Retrieve resourcesPOST- Create resourcesPUT- Update resourcesDELETE- Remove resources
Example request
Create a contact using the API:
cURL
Python
Node.js
PHP
We provide official SDKs for Python, Node.js, PHP, Ruby, Java, TypeScript, Go, and C#. See supported programming languages for installation instructions.
Responses
Response format
Responses are returned as JSON objects. Some operations return empty responses with HTTP status codes (for example, 204 No Content for successful deletions).
Success response
Successful requests return data specific to the endpoint:
Error response
Errors include a code and message:
HTTP status codes
Error codes
Error responses include specific codes in the JSON body:
Pagination
Endpoints that return lists support pagination using query parameters:
Rate limiting
Rate limits prevent API abuse and ensure service stability. Limits vary by endpoint and account tier.
See the rate limits documentation for per-endpoint limits and Enterprise tier details.
When rate limits are exceeded, you receive a 429 Too Many Requests response with headers indicating:
x-sib-ratelimit-limit- Maximum requests allowedx-sib-ratelimit-remaining- Requests remaining in current windowx-sib-ratelimit-reset- Time until limit resets
IP addresses
Some integrations require whitelisting Brevo IP addresses for security or firewall configuration.
View the full list of Brevo IP ranges in our help center.
Many Brevo services use Cloudflare’s proxy. Whitelist Cloudflare IP ranges in addition to Brevo IPs.