Skip to main content

List WhatsApp templates

Returns the WhatsApp templates you can send right now — approved ones only — together with the number of values and what else each template needs. Templates are created in your cabinet and approved by Meta.

URI: https://blackbox.business/api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters​

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example​

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "template/whatsapp/list",
"signature": "WhatsAppTest"
}
]
}

Response examples​

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": [
{
"id": 17,
"name": "order_ready",
"language": "en",
"category": "utility",
"template": "Hello {{1}}, your order {{2}} is ready for pickup.",
"params": 2,
"shape": {
"header": "image",
"header_var": false,
"url_button": false,
"copy_code": false,
"authentication": false
},
"status": "approved"
},
{
"id": 18,
"name": "login_code",
"language": "en",
"category": "authentication",
"template": "*{{1}}* is your verification code.",
"params": 1,
"shape": {
"header": null,
"header_var": false,
"url_button": true,
"copy_code": false,
"authentication": true
},
"status": "approved"
}
]
}
]
}