GET
/v1/whatsapp/analytics
Analytics
Get WhatsApp messaging analytics and statistics
WhatsApp Analytics
Get messaging analytics and delivery statistics.
Endpoint
GET /v1/whatsapp/analytics
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer {access_token} |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date |
string | No | Start date (YYYY-MM-DD) |
end_date |
string | No | End date (YYYY-MM-DD) |
granularity |
string | No | day, week, month (default: day) |
Example Request
curl -X GET "https://api.apimw.com/v1/whatsapp/analytics?start_date=2024-01-01&end_date=2024-01-31" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
Success Response (200 OK)
{
"success": true,
"data": {
"summary": {
"total_sent": 15420,
"total_delivered": 15105,
"total_read": 12850,
"total_failed": 315,
"delivery_rate": 97.96,
"read_rate": 85.07
},
"by_type": {
"text": 8500,
"template": 6200,
"media": 720
},
"daily": [
{
"date": "2024-01-01",
"sent": 520,
"delivered": 510,
"read": 430,
"failed": 10
}
]
}
}
Metrics Explained
| Metric | Description |
|---|---|
delivery_rate |
Percentage of messages delivered |
read_rate |
Percentage of delivered messages read |
total_failed |
Messages that couldn't be delivered |