List WhatsApp templates
GET
/api/v1/whatsapp/templatesLists the message templates of an official WhatsApp channel (360dialog / Meta), with each template's status and the variables to fill when sending it with Send message โ whatsappTemplate.
- Only
APPROVEDtemplates can be sent. variableslists the body placeholders in order:"1","2"for positional placeholders, or names such asfirst_namefor named ones. Send a value for each.- QR-linked WhatsApp numbers have no templates.
Errors
- 400: the channel isn't an official WhatsApp channel, has no API key yet (reconnect it), or 360dialog couldn't be reached.
- 404: the channel wasn't found.
Request
Authorization
Bearer Token
Provide your API token in the Authorization header. See Authentication to issue one.
Example:Authorization: Bearer ********************
Query Params
channelIdstringrequiredID of the official WhatsApp channel (uuid). Find it with the Channel endpoints.
Responses
200OK
OK
statusintegerrequiredbodyobjectrequiredChild attributes
requestIdstringrequireddataarray[object]requiredChild attributes
namestringoptionallanguagestringoptionalcategorystringoptionalstatusstringoptionalcomponentsarray[object]optionalChild attributes
typestringoptionaltextstringoptional
variablesarray[string]optional