Overview
https://app.sendly.ge/api/v1Authorization: Bearer sms_live_…application/jsonGet your credentials
Two things are issued by Sendly before you can send:
| Credential | Where it comes from | Purpose |
|---|---|---|
sms_live_… API key |
Dashboard → SMS → API Keys → Generate Token | Authenticates your requests. Shown once at creation — store it securely. |
| Sender ID | Assigned to you by Sendly | The name shown to recipients. Required on every request. |
The Sender ID is registered for your account by Sendly. Send the exact value you were given (max 11 characters) — arbitrary sender IDs are rejected by the carrier. To revoke a key, delete it on the API Keys page; requests using it immediately return 401.
Send an SMS
/api/v1/sms/messages
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
to | string | string[] | ✅ | Recipient MSISDN(s) in international format, e.g. 995555123456. Pass an array to send to several numbers in one call. |
message | string | ✅ | Message body, 1–1600 characters. Long messages are split into parts by the carrier. |
senderId | string | ✅ | Your Sendly-assigned sender ID (1–11 chars). |
providerId | string | optional | Pin a specific provider. Omit to use your active provider. |
dlrWaitMs | number | optional | Delay before the first delivery-receipt check. Default 120000 (2 min), max 300000; 0 turns delivery tracking off. An SMS still on its way is checked again for up to 72 hours (see Delivery status). |
Response — 202 Accepted
{
"queued": 1,
"logIds": ["clx9a8b7c6d5e4f3g2h1"]
}
logIds correlate to rows in SMS → Send Logs, where you can watch status transition QUEUED → SENT → DELIVERED (or FAILED).
Examples
Single recipient (curl)
curl -X POST https://app.sendly.ge/api/v1/sms/messages \
-H "Authorization: Bearer sms_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"to": "995555123456",
"message": "Your verification code is 4821",
"senderId": "Sendly"
}'
Multiple recipients (bulk)
curl -X POST https://app.sendly.ge/api/v1/sms/messages \
-H "Authorization: Bearer sms_live_xxxx..." \
-H "Content-Type: application/json" \
-d '{
"to": ["995555123456", "995555987654"],
"message": "Flash sale today only!",
"senderId": "Sendly"
}'
Node.js
const res = await fetch("https://app.sendly.ge/api/v1/sms/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SENDLY_SMS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: "995555123456",
message: "Hello from Sendly",
senderId: "Sendly",
}),
});
if (!res.ok) {
throw new Error(`SMS send failed: ${res.status} ${await res.text()}`);
}
const { queued, logIds } = await res.json();
console.log(`Queued ${queued} message(s):`, logIds);
Python
import os, requests
res = requests.post(
"https://app.sendly.ge/api/v1/sms/messages",
headers={"Authorization": f"Bearer {os.environ['SENDLY_SMS_KEY']}"},
json={
"to": "995555123456",
"message": "Hello from Sendly",
"senderId": "Sendly",
},
timeout=15,
)
res.raise_for_status()
print(res.json())
Errors
Errors return a non-2xx status with a JSON body.
| Status | Meaning | How to fix |
|---|---|---|
400 | Validation failed (missing senderId, empty message, malformed to). | Check the request body against the field table. |
400 | No active SMS provider configured. | Activate a provider in SMS → Providers. |
401 | Invalid API key format. | Header must be Bearer sms_live_… (64 hex chars). |
401 | Invalid or revoked API key. | The key was revoked or is wrong. Generate a new one. |
A 400 validation error includes details:
{
"error": {
"code": "BAD_REQUEST",
"message": "Validation failed",
"details": { "senderId": ["Required"] }
}
}
Delivery status
The send call is asynchronous — a 202 means the message was accepted and queued, not yet delivered. After dlrWaitMs, Sendly asks the carrier for a delivery receipt (DLR) and updates the log. If the SMS is still on its way — for example, the phone is off — it asks again after 5 min, 15 min, 1 h, 3 h, 6 h and 12 h, then once a day, until 72 hours after sending.
| Status | Meaning |
|---|---|
QUEUED | Accepted, awaiting dispatch. |
SENT | Handed to the carrier, waiting for the delivery receipt. An SMS to a phone that is off stays here until the phone comes back or the carrier gives up, for at most 72 hours. |
DELIVERED | Carrier confirmed handset delivery. |
FAILED | Carrier rejected it or could not deliver it (for example, the number does not exist or the message expired). |
UNKNOWN | No conclusive receipt within 72 hours of sending, or the carrier reported an unknown result. |
Notes
- Phone numbers should be in international format without
+or spaces (e.g.995555123456). The carrier normalizes common variants. - All sends go to a single endpoint —
POST /api/v1/sms/messagesauthenticated with your API key.