1. Find the template
GET /templates?channel_id={whatsapp channel id}&status=APPROVED lists the templates a number can send:
body.variables (and header.variables for a text header) are the values you must give.
2. Send it
Usemessage.type template, the template name and language, and the variables by name:
message to POST /conversations/{id}/messages.
Media header
For a template with an image, video or document header, give its URL:url, the media stored with the template is used. A document also takes a filename.
Errors
Shortext checks the template before sending it and answerscode 1002 with a message you can act on: