Create a message template
Creates a WhatsApp message template under a connected Business Account and submits it to Meta for review. Use it when outbound content must be sent outside the 24-hour customer service window. Approval typically takes from a few minutes to a few hours; poll the template until template_status becomes approved, then send it through Send a message.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Request
The WhatsApp Business Account the template belongs to. List your accounts at GET /api/messaging/whatsapp/businesses.
The template name. Maximum 512 characters; lowercase letters, numbers, and underscores only.
The template’s components. Must include a BODY component. Each component is an object whose fields depend on its type — see the request example.
Response
The template’s components (header, body, footer, buttons).