List messaging templates
List your project's messaging templates, with their variables and where each can be sent now.
/v1/messaging/templatesUse it to find the template to send and the values a send needs. Templates are created, submitted, and changed in the dashboard, under Messaging → Templates; see Message templates.
Authorization
Bearer token
- Authorizationrequiredheader
Send your API key as
Bearer YOUR_API_KEY.
Query parameters
statusoptionalstringSee Drafts and submitted templates.
One of
"draft""submitted""archived"content_typeoptionalstringSee Content types.
One of
"text""media""quick_reply""call_to_action""card""authentication""carousel"categoryoptionalstringOne of
"marketing""utility""authentication"languageoptionalstringOnly templates in this exact language, such as
enoren_US.channeloptionalstringOnly templates whose content fits this channel.
One of
"whatsapp""sms"queryoptionalstringPart of the template name, 1 to 200 characters. Case doesn't matter.
Unknown parameters are refused with 400.
Response
Templates are under data.items, ordered by name, then language. The list isn't paginated. Deleted templates are never listed.
Each item is a template object. A template can be sent on WhatsApp when channel_status.whatsapp.ready is true, from a number whose WhatsApp account has an approved approval.