Templates

Lists your active WhatsApp templates with their status and variables — handy for resolving the template_id before sending. Requires the whatsapp:templates:read ability. Creating and approving templates happens in the dashboard (WhatsApp → Templates).

GET /api/v1/whatsapp/templates
curl "https://nabbih.com/api/v1/whatsapp/templates?page=1" \
  -H "Authorization: Bearer {YOUR_API_KEY}"

Response

200 ok
{
  "data": [
    {
      "id": 42,
      "account_id": 1,
      "name": "order_confirmation_ar",
      "language": "ar",
      "category": "UTILITY",
      "status": "APPROVED",
      "body_text": "Hello {{1}}, your order {{2}} is confirmed",
      "variables": ["customer_name", "order_number"],
      "components": [],
      "created_at": "2026-07-02T09:00:00+03:00"
    }
  ],
  "meta": { "current_page": 1, "last_page": 1, "per_page": 50, "total": 1 }
}

Results are paginated, 50 templates per page. Use ?page=N to navigate. Only active templates linked to a connected official WhatsApp account are returned.