Create SMS template

This method allows you to create an SMS template.

POST

/sms-templates

Body-Parameter

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

Beispiele


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

Ergebnisformat



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