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

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
channel
enum<string>
Available options:
whatsapp
isRichTemplate
boolean

is the template a rich media template?

templateType
string

type of the template

Used as type in send message for templates. Values are template, richTemplate or buttonTemplate

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

templateDesc
string

template definition

templateVariableCount
integer

Number of placeholders for the template.

Array size of templateArgs in send message

active
boolean

is the template active for API use?