Get SMS templates
This method allows you to retrieve your SMS templates.
GET
/sms-templates
Esempi
GET /sms-templates HTTP/1.1
Host: preprodgoapi.smsfactor.com
Content-type: application/json
Authorization: Bearer your.token
Formato della risposta
{
"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 rich content <-rich->",
"creation_date": "2022-04-20 09:01:10",
"links": { //Links match tags
"customLinks": [
"https://www.smsfactor.com/"
],
"fileLinks": [
"123_22020420090110 myFile"
],
"richid": [
"3210"
]
}
},
{
"template_id": "2",
"name": "My template 2",
"template": "Hello, I'm a model without links",
"creation_date": "2022-04-20 09:02:07",
"links": []
}
]
}