SMS confirmations from your code
Send order confirmations and notifications with POST /v3/transactionalSMS/send, from content or a templateId, then report on your SMS activity.

How it works
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"
}
'
Send a transactional SMS "Your order 4821 has shipped" to 33680065433 from the sender MyShop, tagged shipping.
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 '{
"recipient": "33689965433",
"sender": "MyShop",
"templateId": 123
}'
curl --request GET \
--url 'https://api.brevo.com/v3/transactionalSMS/statistics/aggregatedReport?days=7' \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Show my transactional SMS activity for the last 7 days: requests, delivered, bounces and blocked.
Send with an API key. Use content or a templateId with params: a template overrides content.
Set it up
Pick a sender name
Use up to 11 alphanumeric characters or 15 numeric ones. organisationPrefix is a recognizable prefix recommended by U.S. carriers. It is added as your brand name before the message content.
Send the message
POST to https://api.brevo.com/v3/transactionalSMS/send with recipient, sender and either content or a templateId with params. The 201 response has a messageId. Content over 160 characters is sent as multiple text messages.
Follow each message
Set webUrl to a webhook that is called for each event the message triggers, such as delivered. You can also create a webhook with channel sms.
Report on the traffic
Read activity aggregated over a period, aggregated per day, or as unaggregated events. Filter on a tag.



