Ventia
Whatsapp official
GET
/whatsapp-business/{channelId}/templates

Authorization

bearerAuth
AuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

In: header

Path Parameters

channelId*string

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

Response Body

application/json

application/json

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
      }
    }
  ]
}
Empty
Empty
{
  "success": false,
  "error": "Channel not found"
}
{
  "success": false,
  "error": "Internal server error"
}