Templates

SendTemplateMessage

post

This endpoint allows you to send a template message to a WhatsApp phone number.

Request Body

  • token (string, required): The token for authentication.

  • phone (string, required): The recipient's phone number.

  • template_name (string, required): The name of the template to be used.

  • template_language (string, required): The language of the template.

  • components (array, optional): Message components as defined by the Meta WhatsApp Cloud APIarrow-up-right.

Body
tokenstringRequiredExample: {{token}}
phonestringRequiredExample: {{phone}}
template_namestringRequiredExample: {{template_name}}
template_languagestringRequiredExample: {{template_language}}
Responses
chevron-right
200

Success

application/json
post
/api/wpbox/sendtemplatemessage
200

Success

GetTemplates

get

This endpoint makes an HTTP GET request to retrieve templates from the API.

Your full request URL will look like:{{api_endpoint}}api/wpbox/getTemplates?token={{token}}

Query Parameters:

  • token (string, required): The authentication token.

Response:

  • Status: 200 OK

  • Body: Returns a list of template objects for the authenticated account.

Query parameters
tokenstringRequiredExample: {{token}}
Responses
chevron-right
200

Successful response

application/json
get
/api/wpbox/getTemplates
200

Successful response

Last updated