Account
Get Message Templates
Retrieve approved templates for the account
GET
/v2/account/templates
apikey*
curl --request GET \
--url https://chat.zoko.io/v2/account/templates \
--header 'apikey: <apikey>'
[
{
"active": true,
"channel": "whatsapp",
"isRichTemplate": "boolean",
"templateDesc": "Good morning {{1}}. How may I help you today?",
"templateId": "greeting_01",
"templateLanguage": "en",
"templateType": "string",
"templateVariableCount": "1"
}
]
Authorizations
apikeyheaderrequired
string
Authentication is done via apikey
provided for your account
Include the following in your request header
apikey: "your_apikey_here"
Response
200 - application/json
active
boolean
is the template active for API use?
channel
enum<string>
Available options:
whatsapp
isRichTemplate
boolean
is the template a rich media template?
templateDesc
string
template definition
templateId
string
template id approved by the respective channel.
Used as templateId
in send message for templates
templateLanguage
string
template id approved by the respective channel.
Used as templateLanguage
in send message for templates
templateType
string
type of the template
Used as type
in send message for templates. Values are template
, richTemplate
or buttonTemplate
templateVariableCount
integer
Number of placeholders for the template.
Array size of templateArgs
in send message
curl --request GET \
--url https://chat.zoko.io/v2/account/templates \
--header 'apikey: <apikey>'
[
{
"active": true,
"channel": "whatsapp",
"isRichTemplate": "boolean",
"templateDesc": "Good morning {{1}}. How may I help you today?",
"templateId": "greeting_01",
"templateLanguage": "en",
"templateType": "string",
"templateVariableCount": "1"
}
]