GET
/
account
/
templates
curl --request GET \
  --url https://chat.zoko.io/v2/account/templates \
  --header 'apikey: <api-key>'
[
  {
    "active": true,
    "channel": "whatsapp",
    "isRichTemplate": true,
    "templateDesc": "Good morning {{1}}. How may I help you today?",
    "templateId": "greeting_01",
    "templateLanguage": "en",
    "templateType": "<string>",
    "templateVariableCount": 1
  }
]

Authorizations

apikey
string
headerrequired

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