Add message template
GET https://www.lightsms.com/external/get/add_template.php
Create a reusable SMS message template.
Templates allow you to save frequently used message content for quick access. You can personalize templates with placeholders that are replaced with actual values when sending.
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 |
timestamp | string | ✓ | UTC timestamp of the request |
title | string | ✓ | Template name/title |
text | string | ✓ | Template message content |
return | string | Response format (json or xml) |
Example​
Request​
GET https://www.lightsms.com/external/get/add_template.php?login=JohnDoe&signature=abc123&title=Welcome&text=Welcome to our service!×tamp=1761188934&return=json
Response​
{
"template_id": "12345",
"status": "created"
}
AUTHORIZATION: HTTP
REQUEST
Base URL
https://www.lightsms.com
Query Parameters
loginREQUIREDYour LightSMS account login
signatureREQUIREDRequest signature for authentication
nameREQUIREDTemplate name (unique identifier)
textREQUIREDTemplate text content
timestampREQUIREDUTC timestamp of the request
overrideSet to 1 to update existing template with same name
returnResponse format (json or xml)
RESPONSE
Template created successfully
{
"id": "4419373"
}