Récupérer des modèles de SMS

Cette méthode vous permet de récupérer vos modèles de SMS.

GET

/sms-templates

Exemples


GET /sms-templates HTTP/1.1
Host: 
Content-type: application/json
Authorization: Bearer your.token
      
    

Format de la réponse


{
    "status": 1,
    "message": "OK",
    "templates": [
        {
            "template_id": "1",
            "name": "My template",
            "template": "Hello, I'm a model with a link <-short->, with a file <-file-> and a smiley 😉",
            "creation_date": "2024-11-07 20:30:17",
            "links": {                              //Links match tags
                "customLinks": [
                    "https://www.smsfactor.com/"
                ],
                "fileLinks": [
                    "123_22020420090110 myFile"
                ]
            },
            "unicode": true,
        },
        {
            "template_id": "2",
            "name": "My template 2",
            "template": "Hello, I'm a model without links",
            "creation_date": "2024-11-07 20:30:17",
            "links": [],
            "unicode": false
        }
    ]
}