curl --request GET \
--url https://services.leadconnectorhq.com/locations/{locationId}/templates \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"templates": [
{
"id": "2yMwhgTNO19bpintqrap",
"name": "sms template",
"type": "sms",
"template": {
"body": "sms body",
"attachments": []
},
"dateAdded": "2022-01-27T12:31:19.679Z",
"locationId": "ve9EPM428h8vShlRW1KT",
"urlAttachments": []
}
],
"totalCount": 100
}GET all or email/sms templates
curl --request GET \
--url https://services.leadconnectorhq.com/locations/{locationId}/templates \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"templates": [
{
"id": "2yMwhgTNO19bpintqrap",
"name": "sms template",
"type": "sms",
"template": {
"body": "sms body",
"attachments": []
},
"dateAdded": "2022-01-27T12:31:19.679Z",
"locationId": "ve9EPM428h8vShlRW1KT",
"urlAttachments": []
}
],
"totalCount": 100
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 Location Id
sms, email, whatsapp Origin Id
Was this page helpful?