Skip to main content
Templates are the only messages WhatsApp accepts outside the 24-hour window. They are created and approved in the dashboard, see WhatsApp templates.

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

Use message.type template, the template name and language, and the variables by name:
To send a template in an existing conversation, post the same message to POST /conversations/{id}/messages.

Media header

For a template with an image, video or document header, give its URL:
Without url, the media stored with the template is used. A document also takes a filename.

Errors

Shortext checks the template before sending it and answers code 1002 with a message you can act on: