GET all or email/sms templates
GET/locations/:locationId/templates
GET all or email/sms templates
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location Id
deleted boolean
Default value:
falseskip string
Default value:
0limit string
Default value:
25type string
Available options
smsemailwhatsapporiginId stringrequired
Origin Id
Successful response
- application/json
- Schema
- Example (auto)
Schema
templatesobject[]
totalCountnumber
{
"templates": [
{
"id": "2yMwhgTNO19bpintqrap",
"name": "sms template",
"type": "sms",
"template": {
"body": "sms body",
"attachments": []
},
"dateAdded": "2022-01-27T12:31:19.679Z",
"locationId": "ve9EPM428h8vShlRW1KT",
"urlAttachments": []
},
{
"id": "2yMwhgTNO19bpintqrap",
"name": "email template",
"type": "email",
"dateAdded": "2022-01-27T12:31:19.679Z",
"template": {
"subject": "subject text",
"attachments": [],
"html": "<html><head><style>body{font-family: sans-serif;}</style></head><body>testing</body></html>"
},
"locationId": "ve9EPM428h8vShlRW1KT"
}
],
"totalCount": 100
}