How to Send a SMS
To send SMS messages using this API, follow the steps below:
Send text messages to multiple recipients using the LigueLead API's simple one-step process.
📋 Prerequisites
-
Valid
api-tokenandapp-idfrom your LigueLead account, or anapp-idcreated through the API -
Target phone numbers in Brazilian format
-
SMS message content (text)
📱 Send SMS Message
Send SMS messages to multiple recipients with a single API call.
1️⃣ Get Your Credentials
- Access your account at areadocliente.liguelead.app.br
- Navigate to Integrations → API Token
- Copy your
api-tokenandapp-id
2️⃣ Prepare the Request
Endpoint:POST /v1/sms📄 Send SMS – API Reference
Request Example
curl -X POST "https://api.liguelead.com.br/v1/sms" \
-H "api-token: YOUR_API_TOKEN" \
-H "app-id: YOUR_APP_ID" \
-H "Content-Type: application/json" \
-d '{
"title": "Welcome Campaign",
"message": "Welcome to LigueLead! Thank you for joining us.",
"phones": ["5511999999999", "5511888888888"]
}'Response
{
"message": "SMS accepted successfully",
"data": {
"campaign_id": "3b4f7c5e-7e2d-4157-b542-5eb2155455c5",
"accepted_at": "2025-12-29T18:34:38.961Z"
}
}💡 Tip: Save the returned
campaign_idfor tracking delivery status later.
📋 Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | ❌ | Campaign identifier for organization |
message | string | ✅ | SMS text content to be sent |
phones | array | ✅ | Phone numbers (multiple formats accepted): Brazilian, or of a country enabled for international SMS |
group_id | string | ❌ | Deprecated: accepted for compatibility, has no effect on the send |
is_flash | boolean | ❌ | Defines whether the message will be sent via Flash. |
ddi | string or integer | ❌ | Country calling code put in front of each number that does not carry one ("55", "+55" or 55). Defaults to 55 (Brazil). Another code is accepted only for a country enabled for international SMS, and never with is_flash; any other is refused with 422. When you send ddi — 55 included — every number of the send must be of that country; to mix countries, leave ddi out and write every number with +. |
webhook_url | string | ❌ | URL that receives the status of this send instead of the app's webhook URL, called exactly as written (query string included). Up to 512 characters; see How to Receive Webhooks |
📱 Phone Number Format
The API accepts Brazilian phone numbers in multiple formats:
✅ National Format:
- São Paulo:
"11999999999" - Rio de Janeiro:
"21999999999" - Brasília:
"61999999999" - Belo Horizonte:
"31999999999"
✅ International Format:
- São Paulo:
"+5511999999999" - Rio de Janeiro:
"+5521999999999" - Brasília:
"+5561999999999"
✅ DDI Format:
- São Paulo:
"5511999999999" - Rio de Janeiro:
"5521999999999" - Brasília:
"5561999999999"
Recommendation: Send numbers with the country code (
5511999999999or+5511999999999). Without it, the length decides: 10 or 11 digits are a national number and get55in front — area code 55 included, so55991234567is sent as5555991234567.
International SMS
SMS can also reach mobile numbers in the countries enabled for international SMS on the platform; today, Australia (+61) and New Zealand (+64). RCS delivers only to Brazil, and so does SMS Flash, which reads numbers the same way as SMS.
The practical rule:
- Only Brazil → nothing changes: send the numbers as you always did, without
ddi. - One foreign country → send its code in
ddi("ddi": "61"), and write the numbers as they are dialed there (0412345678) or with that same code (+61412345678). - Several countries → leave
ddiout, and write every number with+and its country code (+61412345678,+64211234567,+5511987654321).
When you send ddi (any value, 55 included), it prevails: every number of the send must be of that country.
- A number without
+is a number of that country, as dialed there; with55, a Brazilian number as always, a missing ninth digit restored (1179786371goes to+5511979786371). - A number written with
+of that country is read there. Withddi55:+55…, or the digits of a Brazilian mobile (+11987654321). With anotherddi: a mobile goes there; a landline is refused with422; a number valid nowhere in that country is accepted, charged and refused asinvalid_number(+61987654321withddi61). - A number written with
+of any other country —+55included when theddiis not55— is refused with422, before anything is charged:Phone number +5511987654321 does not match ddi 61: every phone of a send with ddi must be of that country; to mix countries, leave ddi out and write every phone with +. Withddi55, a foreign number is refused this way too, even of an enabled country.
When you leave ddi out, a number without +, or with +55, is Brazilian, as always. A number written with + and another code is read by its own digits, in one of four ways — the same while no country is enabled:
- A valid Brazilian mobile as written is sent in Brazil:
+11987654321, and+33992761304, which is also a French number, go to+5511987654321and+5533992761304. - A mobile of an enabled country is sent there:
+61412345678(Australia), and+6421234567(New Zealand), even though the same digits would be a landline in area code 64. Withis_flash, which delivers only to Brazil, it is refused with422:SMS Flash delivers only to Brazilian numbers: +61412345678 is a number of AU. - A valid number of a country that is not enabled — every country, while none is — or a landline is refused with
422, before anything is charged. - A number valid in no country is accepted and charged, and refused with the status
invalid_number. It is never corrected into a Brazilian number and never sent:+1191234567is not turned into+5511991234567.
A ddi of a country that is not enabled is refused with 422, before anything is charged.
ddi | Number sent | Number the SMS goes to |
|---|---|---|
| absent | 11987654321 | +5511987654321 (Brazil, as always) |
| absent | +61412345678 | +61412345678 (Australia) |
| absent | +6421234567 | +6421234567 (New Zealand: not a Brazilian mobile) |
| absent | +33992761304 | +5533992761304 (a Brazilian mobile as written) |
| absent | +1191234567 | not sent — valid in no country: accepted, charged and refused as invalid_number |
55 | +61412345678 | refused with 422: not a number of ddi 55 |
55 | +33992761304 | +5533992761304 (a Brazilian mobile as written) |
61 | 0412345678 | +61412345678 |
61 | +61412345678 | +61412345678 |
61 | +5511987654321 | refused with 422: not a number of ddi 61 |
61 | +33992761304 | refused with 422: not a number of ddi 61 |
61 | +61987654321 | not sent — valid nowhere in Australia: accepted, charged and refused as invalid_number |
64 | 0211234567 | +64211234567 (New Zealand) |
What is checked before the send is accepted — each failure is a 422, and nothing is charged:
- The number is valid in its country's numbering plan; a number not valid for the
ddiis refused withPhone number is not valid for ddi 61, and one written with+of another country than theddi's withPhone number … does not match ddi 61. - The country is enabled:
International SMS is not enabled for GB (+44); enabled countries: AU, NZ— or, while none is,International SMS is not enabled for AU (+61); no country is enabled for international SMS. Addiof a country that is not enabled is refused onddi. - The number is a mobile: a landline is refused with
International SMS delivers only to mobile numbers. - The format rules that hold for every number: only digits and
+,(,),-, and between 10 and 16 digits. Write the number with its country code or its leading0, as shown above.
One exception, by design: a number written with + that is valid in no country (case 4 above, or one valid nowhere in the ddi's country) is not refused here. The send is accepted and charged, and the number is refused with the status invalid_number — the way an invalid Brazilian number is. A malformed number (characters other than digits, +, (, ) and -, or fewer than 10 or more than 16 digits) is different: it is refused here with 422, nothing charged. An invalid one is well formed but is not a number that exists — it is accepted, charged and refused as invalid_number. It is never corrected into a Brazilian number (no ninth digit is added) and never sent: +1191234567 and +999123456789 are both refused, under +551191234567 and +55999123456789 in the statuses.
Billing: an international SMS is charged like any SMS — one credit per part of the message.
Sender: the sender international recipients see is set by the platform per country (an alphanumeric name or a local number, depending on what each country allows); it cannot be chosen per request yet.
Statuses: an international SMS reports the same statuses as any SMS, and its webhooks, reports and campaign queries carry the number in international format (+61412345678).
⚡ Processing & Delivery
- Asynchronous Processing: SMS messages are queued for delivery
- Response Code:
200 OKindicates successful queuing - Delivery Time: Usually within minutes, depending on carrier
- Character Limit: 160 characters per SMS (longer messages charged additional credits)
🚀 Best Practices
- Clear Messages: Keep SMS content concise and actionable
- Test First: Send to a small group before scaling up
- Timing Matters: Consider Brazilian business hours for better engagement
- Descriptive Titles: Use clear campaign titles for easy identification
🚫 SMS Flash Restrictions
SMS Flash messages do not allow sending links (URLs) in the message content.
🛠️ Troubleshooting
| Issue | Solution |
|---|---|
| Invalid phone format | Ensure valid Brazilian phone number format (11 digits or with DDI) |
International SMS is not enabled for … | The number's country is not enabled for international SMS; see International SMS |
International SMS delivers only to mobile numbers | The number is a landline; international SMS reaches mobiles only |
| Authentication error | Verify api-token and app-id headers |
| Message too long | Keep within 1,600 characters |
| Empty phones array | Include at least one valid phone number |
📈 SMS Campaign Ideas
E-commerce
- Order confirmations
- Shipping updates
- Promotional offers
- Abandoned cart reminders
Healthcare
- Appointment reminders
- Medication alerts
- Health tips
- Test results notifications
Education
- Class schedules
- Important announcements
- Grade notifications
- Event reminders
Retail
- Store promotions
- New product launches
- Seasonal campaigns
- Customer surveys
🔐 Security & Compliance
- Data Protection: Ensure compliance with Brazilian data protection laws (LGPD)
- Opt-in Required: Only send SMS to customers who have consented
- Rate Limits: Respect API rate limits to avoid blocking
- Content Guidelines: Avoid spam-like content that could be filtered
📞 Support
Need help with SMS integration? Contact our support team through the LigueLead Client Area.
Updated about 20 hours ago
