Introduction
TL;DR Text messages get read fast. A verification code, a shipping update, or a payment alert reaches the phone within seconds. Developers want to send those messages from their own apps. Brevo gives them a clean way to do it.
This guide covers the brevo sms api from first setup to daily limits. You will learn what the API does and who should use it. You will follow a clear path to send your first message. You will see how credits work and what each message costs. You will learn the limits that can trip up a launch.
Table of Contents
What Is the Brevo SMS API?
Brevo is a marketing and messaging platform. It started with email and now covers SMS, WhatsApp, chat, and a CRM. The brevo sms api lets your code send text messages through that platform. Your app makes an HTTP request. Brevo delivers the message to the phone.
The API uses a simple REST design. Requests go to the base address api.brevo.com, version three. Responses come back as JSON. Official libraries exist for languages such as Node, Python, and PHP.
Transactional and marketing messages
Brevo splits SMS into two types. Transactional messages respond to a user action. Think of password codes, order confirmations, and delivery alerts. Marketing messages promote offers to a list of contacts.
The type affects compliance. Marketing texts need an opt-out line. Brevo’s docs explain a simple rule for the transactional endpoint. To send a message as transactional, leave out the stop code in the content.
What you can do with it
You can send single messages to one number. You can use templates for repeat messages. You can pull reports on sends, deliveries, and failures. You can set up webhooks that tell your server about events in real time.
Teams use the API for two-factor codes, appointment reminders, abandoned cart nudges, and shipping notices. Many pair it with Brevo’s email tools so one platform covers both channels.
Before You Start: What You Need
Gather a few items before you write any code. Preparation prevents most launch delays.
You need a Brevo account. A free account works for testing the platform. Brevo’s help center states that it does not offer a dedicated SMS plan. You buy SMS credits on top of whatever plan you hold.
You need credits. Credits come in packs of 100 and never expire, according to Brevo’s help center. A small starter pack covers your tests.
You need an API key. You create it inside your account settings. Treat it like a password.
You need a sender name. This is the label recipients see. Many guides report a limit of eleven alphanumeric characters. Some countries demand a pre-registered sender ID, so check the rules for each market you target.
You need phone numbers in international format. Include the country code. A number without it will fail.
You need consent. Collect permission from every recipient. Know the local laws that govern text messages in each country you serve.
How to Set Up the Brevo SMS API
Setup for the brevo sms api takes about thirty minutes for most developers. Follow each step in order.
create and verify your account
Sign up at Brevo and confirm your email. Complete the profile details that Brevo asks for. Brevo may review new accounts before it unlocks full sending. Fill every field honestly to avoid delays.
buy SMS credits
Open the SMS section in your account. Choose a credit pack. Pay with a card. Credits appear in your balance within moments. Start with the smallest pack until you confirm that everything works.
generate your API key
Open your account menu and find the SMTP and API area. Create a new API key. Give it a clear name, such as production-sms. Copy it right away and store it in a password manager or secret vault. Never paste it into public code.
Follow the same care as with any credential. Use environment variables. Rotate the key on a schedule. Delete keys you no longer use.
choose your sender
Pick a sender name that your customers recognize. Use your brand name. Keep it short and avoid special characters. Check the country rules before you launch in a new market. Some regions block alphanumeric senders unless you register them first.
send your first message
The current endpoint is a POST request to the transactionalSMS send path. Here is a basic cURL example.
curl --request POST \
--url https://api.brevo.com/v3/transactionalSMS/send \
--header 'accept: application/json' \
--header 'api-key: YOUR-API-KEY' \
--header 'content-type: application/json' \
--data '{
"sender": "MyShop",
"recipient": "33689965433",
"content": "Your verification code is 482915"
}'
Three fields matter most. The sender sets the label. The recipient holds the phone number. The content holds the text.
Brevo replaced an older endpoint with this one. The older path ends in sms and carries a deprecation notice. It still runs for now, yet Brevo recommends moving to the new version. Use the new path for every new project.
check the response and the report
A good response confirms that Brevo accepted the message. The older response format showed the message ID, the SMS count, the credits used, and the credits left. Log those values on your side. They help you track cost per message.
Then check delivery. Brevo offers statistics endpoints for aggregated reports, daily reports, and event details. Use them to confirm that messages reached phones.
use templates for repeat messages
The asynchronous send option accepts a template ID in place of raw content. Templates keep wording consistent. They also let your team update text without a code release.
Code Examples in Common Languages
Most teams prefer an SDK over raw HTTP. Brevo publishes official clients for several languages.
A Python call looks like this.
from brevo import Brevo
client = Brevo(api_key='YOUR_API_KEY')
client.transactional_sms.send_async_transactional_sms(
recipient='33689965433',
sender='MyShop',
template_id=123,
)
Node developers use a similar pattern with a client object and a send method. PHP developers do the same with the Brevo namespace. Check the docs for exact method names, since SDK versions change.
Keep a few habits in every language. Load the key from an environment variable. Wrap the call in error handling. Log the response. Retry only on safe errors and never retry blindly, because a retry can send a duplicate text and burn credits.
Build a small wrapper function for your app. It should accept a phone number and a message. It should return a clean success or failure result. Your other code then never touches Brevo details directly. That structure makes later changes easy.
Brevo SMS API Pricing and Credits
Pricing works on credits, not on a monthly SMS plan. Brevo’s help center says the platform does not offer an SMS plan. You buy credits when you need them.
Packs come in units of 100 credits. Credits never expire. That policy removes the pressure to spend them by a deadline.
Cost per message varies by destination country. A text to one country may use a fraction of a credit, while another country may use more. Brevo publishes a supported countries and pricing page. Check it for each market before you launch.
Message length affects cost. A long text splits into several parts, and each part counts as one SMS. A message with special characters, such as emoji or non-Latin letters, uses a different encoding with a lower character limit per part. Typical limits are 160 characters for standard text and 70 for Unicode text. Confirm the current numbers in Brevo’s docs.
The response to your send call reports the SMS count and the credits used. Log both. Compare them against your own estimates.
SMS credits stay separate from email limits. Third-party reviews note that Brevo sells SMS and WhatsApp credits apart from plan fees. The free plan allows around 300 emails per day, yet that limit does not cover texts. Plan your SMS budget on its own.
Control your spend with a few habits. Keep messages short. Strip emoji from transactional texts. Send only to verified numbers. Block repeat sends to the same number within a short window. Set a low-balance alert so your codes never stop in production.
Request volume pricing if you plan to send at scale. Large senders often negotiate better rates. Ask Brevo’s sales team about options.
Brevo SMS API Limits and Rate Controls
The brevo sms api has limits, like every API. Knowing them early prevents ugly surprises in production.
Rate limits
Brevo limits request volume by plan. Third-party guides report figures such as 300 requests per minute on the free plan, 600 on Starter, and 1,200 on Business. Treat those numbers as approximate and confirm them in Brevo’s current docs. Check the rate-limit headers in each response to track your remaining quota.
A 429 error means you sent too many requests. Slow your script. Add a short pause between calls. Queue messages and send them at a steady pace.
Credit limits
A 402 error signals a payment problem, such as missing credits. Top up your balance and retry. Set a balance alert so this error never reaches your users.
Sender and content limits
Sender names carry a length cap. Eleven alphanumeric characters is the common limit. Content has length caps as well. Long messages split into parts and cost more.
Some countries require registered sender IDs. Others replace your custom sender with a generic number. Test delivery in each target country before launch.
Phone number format
Use international format with the country code. A missing code causes failures. Validate numbers in your own app before you call the API.
Bad request errors
A 400 error means Brevo rejected the request body. Check required fields. The sender, the recipient, and the content must all appear. Fix typos in field names.
Authentication errors
A 401 error points to a missing or wrong API key. Confirm that the api-key header holds the right value. Confirm that nobody revoked the key.
Build error handling for each case. Log the status code and the response body. Alert your team on repeated failures.
Tracking Delivery With Reports and Webhooks
Sending a message is half the job. You also need to know whether it arrived.
Brevo offers reporting endpoints for transactional SMS. One returns activity aggregated over a time period. Another returns reports by day. A third lists individual events. Use them for dashboards and audits.
Webhooks give real-time updates. Brevo calls your server when an event happens, such as a delivery or a failure. Your system can then update an order, retry on another channel, or alert support.
Build your webhook receiver with care. Verify that each call comes from Brevo. Respond fast with a success code. Process the data in a background job. Handle repeat deliveries of the same event without side effects.
Watch your delivery rate. A sudden drop signals a problem. It may point to a sender issue, a country rule, or a carrier block. Investigate quickly.
Track key numbers each week. Count messages sent, delivered, and failed. Track credits used per message. Review the top failure reasons. Small trends reveal big problems early.
Best Practices for Reliable SMS Sending
Good habits protect your budget and your reputation.
Get consent first. Record when and how each person opted in. Honor opt-outs at once. Laws such as the TCPA in the United States and GDPR rules in Europe carry real penalties.
Keep messages short and clear. Name your brand at the start. State the purpose in one line. Include a code or link only when needed.
Send at sensible hours. Avoid late-night texts unless the message is urgent, such as a security code.
Protect your key. Use separate keys for test and production. Restrict who can see them. Rotate them often.
Test in a staging flow. Send to your own phone and a few teammates. Confirm sender display, character handling, and delivery speed.
Plan for failure. Set a fallback, such as email or a push notice, when a text fails. Show a clear resend option in your app for verification codes.
Prevent abuse. Attackers can trigger endless verification texts and drain your credits. Add rate limits per phone number and per user. Add captchas where needed.
Brevo SMS API Alternatives
Brevo fits teams that want email, SMS, and a CRM in one place. Other tools may fit different needs.
Twilio offers deep global coverage and rich developer tools. It suits large, complex messaging products. Prices vary by country and feature.
Vonage and Sinch serve enterprise senders with strong carrier connections. They suit high volume and special routing needs.
Amazon SNS gives a bare-bones option inside AWS. Teams already deep in that cloud may like the simple setup.
SMS-only providers such as Plivo focus on low per-message rates. They suit teams that want texts and nothing else.
Weigh each option on coverage, price, deliverability, support, and compliance tools. Test delivery in your top countries. Choose the provider that wins on your real routes, not the one with the flashiest page.
Frequently Asked Questions
Does the Brevo SMS API have a free plan?
Brevo does not sell an SMS plan. You buy credits in packs of 100. Credits never expire. Brevo’s free account lets you test the platform, though SMS needs paid credits.
What is the current endpoint for transactional SMS?
Use a POST request to api.brevo.com/v3/transactionalSMS/send. Brevo deprecated the older sms endpoint and recommends the new one.
How do I authenticate?
Send your API key in the api-key header on every request. Create the key in your Brevo account settings.
What fields does a send request need?
The request needs a sender, a recipient, and content. Templates can replace raw content in the asynchronous option.
How do I send a marketing SMS instead of a transactional one?
Marketing messages need an opt-out stop code in the content. Brevo’s docs say that leaving the stop code out makes the message transactional.
Do SMS credits expire?
No. Brevo’s help center states that credits never expire.
What are the rate limits?
Limits depend on your plan. Third-party guides list 300, 600, and 1,200 requests per minute for Free, Starter, and Business plans. Confirm current figures in Brevo’s docs.
Why did my SMS fail?
Common causes include a missing country code, a sender that the destination country blocks, a long sender name, or missing credits. Check the error code and response body first.
Read More:-Adlib DSP Alternatives: 7 Platforms Compared
Conclusion

The brevo sms api gives developers a simple way to send texts at scale. You create an account, buy credits, generate a key, and call one endpoint. A few lines of code deliver a message to a phone anywhere Brevo supports.
Pricing stays flexible. You pay for credits, not for a monthly SMS plan. Credits never expire. Cost depends on the country and message length.
Limits deserve attention. Watch rate limits, sender rules, and country requirements. Handle error codes with care. Track delivery with reports and webhooks.