Send verification codes by SMS
Send one-time codes from your backend with POST /v3/transactionalSMS/send, and get a webhook call for each event the message triggers.

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 the SMS "Enter this code: 482913 to validate your account" to 33680065433 from the sender MyShop, tagged accountValidation.
curl --request GET \
--url 'https://api.brevo.com/v3/transactionalSMS/statistics/events?limit=50&offset=0&sort=desc' \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
List my SMS events for the last 2 days for the number 33680065433 and tell me whether the code was delivered.
Send with an API key from SMTP and API settings. Leave out a STOP code so the message stays transactional.
Set it up
Message content
The message text goes in the content field of the send call, for example: Enter this code: CCJJG8 to validate your account.
SMS endpoint
The recipient is the mobile number to send SMS with the country code. The content is the content of the message. Keep the sender to 11 alphanumeric characters or 15 numeric ones.
Skip the STOP code
A STOP code in the content switches the message to marketing. Leave it out so the message stays transactional.
Track delivery
webUrl is a webhook to call for each event triggered by the message. GET /v3/transactionalSMS/statistics/events lists SMS events.



