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.
links links is an array that contains the links corresponding to tags. links can contains customLinks for <-short-> tag, fileLinks for <-file-> tag and richid for <-rich-> tag.

Examples


POST /sms-template HTTP/1.1
Host: preprodgoapi.smsfactor.com
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/"
                ]
            }
        }
    }
}
          
        

Result Format



{
    "status": 1,
    "message": "OK",
    "template_id": "123"
}