Send SMS from Python
Post a sender, a recipient and a message to the Brevo transactional SMS endpoint from Python, and a 201 response returns the messageId.

How it works
import requests
url = "https://api.brevo.com/v3/transactionalSMS/send"
payload = {
"recipient": "33689965433",
"sender": "MyShop",
"templateId": 123
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
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": "33680065433",
"content": "Enter this code:CAAA08 to validate your account",
"type": "transactional",
"tag": "accountValidation",
"webUrl": "https://webhook.site/100lyyx1",
"unicodeEnabled": true,
"organisationPrefix": "MyCompany"
}
'
pip install brevo-python
Ask your AI agent
Connect your AI assistant to the Brevo MCP server, then copy a prompt below.
Show my transactional SMS activity for the last 7 days: requests, delivered, bounces and blocked.
List my transactional SMS events for the last 2 days and tell me whether each message was delivered.
Read-only: it reads your Brevo account through the Brevo MCP server and changes nothing.
Set it up
API key and SMS credits
Include your API key in the api-key header for every request. SMS credit is sold separately.
Send the message
Post a sender, a recipient (a mobile number with the country code) and content to https://api.brevo.com/v3/transactionalSMS/send. A 201 response returns a messageId. Instead of content, you can send a templateId with params. Sender name limits are in the FAQ.
Track delivery
Add a tag, and set webUrl to receive an event for each delivery step. Or call GET /v3/transactionalSMS/statistics/events, which can filter by phoneNumber or event.


