Skip to main content

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​

NameTypeRequiredDescription
loginstring✓Your LightSMS account login
signaturestring✓Request signature for authentication
timestampstring✓UTC timestamp of the request
titlestring✓Template name/title
textstring✓Template message content
returnstringResponse 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!&timestamp=1761188934&return=json

Response​

{
"template_id": "12345",
"status": "created"
}

AUTHORIZATION: HTTP

REQUEST

Base URL
https://www.lightsms.com
Query Parameters
loginREQUIRED
Your LightSMS account login
signatureREQUIRED
Request signature for authentication
nameREQUIRED
Template name (unique identifier)
textREQUIRED
Template text content
timestampREQUIRED
UTC timestamp of the request
override
Set to 1 to update existing template with same name
return
Response format (json or xml)

RESPONSE

Template created successfully
{
"id": "4419373"
}