Ventia
Whatsapp business

List channel templates

Lists the WhatsApp templates synced on an official WhatsApp channel. Use the `id` (or `name` + `language`) to send a template with **Send message**, and `parameters` to know how many variable values each component expects. Requires the `interactions:create` scope.

GET
/whatsapp-business/{channelId}/templates

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Path Parameters

channelId*string

Id of the official WhatsApp channel (WhatsApp Business) in Ventia.

Response Body

OK

application/json
curl -X GET 'https://api.getventia.com/api/v1.0/whatsapp-business/string/templates'
{  "success": true,  "templates": [    {      "id": "665f1c2e8b3e4a0012345678",      "name": "order_ready",      "language": "es",      "category": "UTILITY",      "status": "approved",      "disabled": false,      "components": [        {          "type": "BODY",          "text": "Hola {{1}}, tu pedido {{2}} está listo."        }      ],      "parameters": {        "header": 0,        "body": 2      }    }  ]}