Create SMS template

This method allows you to create an SMS template.

POST

/sms-templates

Paramètres du body

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

Exemples


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

Format de la réponse



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