Create SMS template

This method allows you to create an SMS template.

POST

/sms-templates

Parametri del body

model
richiesto
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.

Esempi


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/"
                ]
            }
        }
    }
}
          
        

Formato della risposta



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