Sendly
Start free
Developer Docs

SMS API

Send SMS programmatically to Georgian mobile numbers using your Sendly account. Authenticate with an API key; messages are queued and delivered asynchronously.

Overview

Base URLhttps://app.sendly.ge/api/v1
AuthAuthorization: Bearer sms_live_…
Content-Typeapplication/json

Get your credentials

Two things are issued by Sendly before you can send:

CredentialWhere it comes fromPurpose
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

POST /api/v1/sms/messages

Body parameters

FieldTypeRequiredDescription
tostring | string[]✅Recipient MSISDN(s) in international format, e.g. 995555123456. Pass an array to send to several numbers in one call.
messagestring✅Message body, 1–1600 characters. Long messages are split into parts by the carrier.
senderIdstring✅Your Sendly-assigned sender ID (1–11 chars).
providerIdstringoptionalPin a specific provider. Omit to use your active provider.
dlrWaitMsnumberoptionalDelay 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

json
{
  "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)

bash
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)

bash
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

javascript
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

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.

StatusMeaningHow to fix
400Validation failed (missing senderId, empty message, malformed to).Check the request body against the field table.
400No active SMS provider configured.Activate a provider in SMS → Providers.
401Invalid API key format.Header must be Bearer sms_live_… (64 hex chars).
401Invalid or revoked API key.The key was revoked or is wrong. Generate a new one.

A 400 validation error includes details:

json
{
  "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.

StatusMeaning
QUEUEDAccepted, awaiting dispatch.
SENTHanded 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.
DELIVEREDCarrier confirmed handset delivery.
FAILEDCarrier rejected it or could not deliver it (for example, the number does not exist or the message expired).
UNKNOWNNo 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/messages authenticated with your API key.