GET
/v1/whatsapp/templates
List Templates
Get all available message templates
List Templates
Retrieve all available message templates for your account.
Endpoint
GET /v1/whatsapp/templates
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer {access_token} |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status |
string | No | Filter by status (APPROVED, PENDING, REJECTED) |
category |
string | No | Filter by category |
Example Request
curl -X GET "https://api.apimw.com/v1/whatsapp/templates?status=APPROVED" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
Success Response (200 OK)
{
"success": true,
"data": {
"templates": [
{
"name": "order_confirmation",
"language": "en",
"status": "APPROVED",
"category": "TRANSACTIONAL",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Order Confirmed! 🎉"
},
{
"type": "BODY",
"text": "Hi {{1}}, your order {{2}} has been confirmed. Total: {{3}}"
},
{
"type": "FOOTER",
"text": "Thank you for shopping with us!"
}
]
}
],
"pagination": {
"total": 15,
"page": 1,
"per_page": 20
}
}
}
Template Categories
| Category | Description |
|---|---|
TRANSACTIONAL |
Order updates, receipts |
MARKETING |
Promotions, offers |
OTP |
One-time passwords |
UTILITY |
Account updates |