Send SMS
GET https://www.lightsms.com/external/get/send.php
Send an SMS message to one or multiple phone numbers.
Bulk Sending​
To send the same message to multiple recipients, provide multiple phone numbers separated by commas (maximum 100 phone numbers per request).
Scheduled Sending​
Use the sendingTime parameter to schedule SMS for future delivery. Format: YYYY-MM-DD HH:MM:SS
Error Codes​
0- Success - message sent1- Signature not specified2- Login not specified3- Text not specified4- Phone number not specified5- Sender not specified6- Invalid signature7- Invalid login8- Invalid sender name9- Sender name not registered10- Sender name not approved11- The text contains forbidden words12- Error sending SMS13- Phone number is blacklisted. Sending SMS to this number is forbidden.14- The request contains more than 50 numbers15- List not specified16- Invalid phone number17- SMS ID not specified18- Status not obtained19- Empty response20- Phone number already exists21- Name not specified22- Template already exists23- Month not specified (Format: YYYY-MM)24- Timestamp not specified25- Error accessing the list26- No numbers in the list27- No valid numbers28- Start date not specified (Format: YYYY-MM-DD)29- End date not specified (Format: YYYY-MM-DD)30- Date not specified (Format: YYYY-MM-DD)31- Direction to the user is closed32- Insufficient funds33- Phone number not set34- Phone number is in the stop list35- Insufficient funds36- Cannot obtain phone information37- Base ID not set38- Phone number already exists in this base39- Phone number does not exist in this base
Message Length​
- Standard SMS: 160 characters per message
- Long SMS: Automatically split into multiple messages (153 characters each)
- Unicode SMS: 70 characters for messages with special characters/emojis
Authorization​
This endpoint requires authentication using login, signature, and timestamp parameters.
See the Authentication documentation for more details.
Parameters​
Query Parameters​
| Name | Type | Required | Description |
|---|---|---|---|
login | string | ✓ | Your LightSMS account login |
signature | string | ✓ | Request signature for authentication |
phone | string | ✓ | One or multiple phone numbers (comma-separated, max 100) |
text | string | ✓ | SMS message text |
sender | string | ✓ | Sender name (approved in your account) |
timestamp | string | ✓ | UTC timestamp of the request |
sendingTime | string | Schedule SMS for future delivery (format YYYY-MM-DD HH:MM:SS) | |
return | string | Response format (json or xml) |
Example​
Request​
GET https://www.lightsms.com/external/get/send.php?login=JohnDoe&signature=cde12435b3b5dd7bf3f1d01c1a52336&phone=37068458719&text=Hello!&sender=YourBrand×tamp=1409887191&sendingTime=2024-12-31 14:06:30&return=json
Response​
{
"37068458719": {
"error": "0",
"id_sms": "4092113103483809600001",
"cost": "0.5",
"count_sms": "1"
}
}
AUTHORIZATION: HTTP
REQUEST
Base URL
https://www.lightsms.com
Query Parameters
loginREQUIREDYour LightSMS account login
signatureREQUIREDRequest signature for authentication
phoneREQUIREDOne or multiple phone numbers (comma-separated, max 100)
textREQUIREDSMS message text
senderREQUIREDSender name (approved in your account)
timestampREQUIREDUTC timestamp of the request
sendingTimeSchedule SMS for future delivery (format YYYY-MM-DD HH:MM:SS)
returnResponse format (json or xml)
RESPONSE
SMS sent successfully
{
"37068458719": {
"error": "0",
"id_sms": "4092113103483809600001",
"cost": "0.5",
"count_sms": "1"
}
}