Skip to main content

Create SMS Template

API Description

Create and submit an SMS template. The template must be approved before it can be used.

Request Information

Purposeintrequired
Template purpose: 1-Verification code, 2-Notification, 3-Marketing
?
TemplateNamestringrequired
Template name
?
Templatestringrequired
Template content
?
Remarkstring
Remarks
?
Instructionstring
Usage instructions
BrevityCodestring
Short code
Tagsstring
Tag list (JSON array), e.g. [1, 2]
?
VariableAttrstring
Template variable attributes

LANGUAGE

CREDENTIALS

👁️
🔒
🔑Log in to get ACCESSKEY_ID and ACCESSKEY_SECRET

URL

POST
CURL Request
curl -X POST "https://api.uspeedo.com/api/v1/usms/USMSTemplate" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Basic $(echo -n 'ACCESSKEY_ID:ACCESSKEY_SECRET' | base64)" \
-d '{
"Purpose": 1,
"TemplateName": "MyTemplate",
"Template": "Your verification code is {1}, valid for 5 minutes",
"Remark": "For user login verification"
}'

RESPONSE

Click Try It! to start a request and see the response here.