Create SMS template
This method allows you to create an SMS template.
POST
/sms-templates
Body Parameters
model
required
|
The message content of your template. |
name | The name of template. |
unicode | Activate the unicode mode, allowing special chars and reducing the length of one SMS to 70 characters. Default false |
links | links is an array that contains the links corresponding to tags. links can contains customLinks for <-short-> tag and fileLinks for <-file-> tag. |
Examples
POST /sms-template HTTP/1.1
Host:
Authorization: Bearer your.token
Content-type: application/json
{
"sms": {
"template": {
"name": "My template",
"model": "Hello, I'm a model with a link <-short->",
"links":{
"customLinks": [
"https://www.smsfactor.com/"
]
},
"unicode": false
}
}
}
Result Format
{
"status": 1,
"message": "OK",
"template_id": "123"
}