Usage
Get WhatsApp Summary
WhatsApp messages sent and received, how many were delivered, read or failed (with failure codes), a series, and what they cost you — the WhatsApp dashboard's figures. Either a rolling days or a from/to range (inclusive, up to 366 days), in your workspace's time zone; from/to wins when both are given. Any key may call this, a read-only key included.
GET/whatsapp/summary
Query parameters
- daysinteger
- The rolling window. Ignored when
from/toare given. Default:7. Range: 1–90. - fromstring (date)
- Range start, YYYY-MM-DD, your time zone. Needs
to. - tostring (date)
- Range end, YYYY-MM-DD, inclusive. Needs
from.
Headers
- Katexs-Workspacestring
- Developers only: the customer workspace this request acts in — its
org_…id fromPOST /customers. Leave it out to act in your own workspace. Refused with404(Workspace not found.) when the id is unknown, is not one of your customers, or is not anorg_…id;410when that customer was deleted (restore it withPOST /customers/{id}/restoreuntil it is erased);403when the key belongs to one customer workspace (it cannot act as another);400when your workspace is not a developer workspace./customers/*andGET /customers/usageare your own workspace's and refuse the header with400: call them without it.
Example request
bash
curl "https://app.katexs.com/api/v1/whatsapp/summary" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | WhatsApp totals. |
400 | A bad window. |
401 | The key is missing, wrong or revoked. The answer is always the same, whichever it is. |
403 | The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden. |
404 | The workspace no longer exists. |
410 | The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date. |
429 | Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit. |
Response fields
- daysinteger
- The rolling window, when asked by
days. Absent withfrom/to. - fromstring (date)
- Range start, when asked by
from/to. - tostring (date)
- Range end, when asked by
from/to. - timezonestringrequired
- Your workspace's time zone.
- grainstringrequired
hourfor a one-day window, elseday. One of:hour,day.- sentintegerrequired
- Messages sent by the agent or a person.
- deliveredintegerrequired
- Sent messages whose latest receipt is delivered (not yet read).
- readintegerrequired
- Sent messages read.
- failedintegerrequired
- Sent messages that failed.
- noReceiptintegerrequired
- Sent messages with no receipt yet.
- receivedintegerrequired
- Messages received from customers.
- seriesobject[]required
- errorsobject[]required
- Failures by WhatsApp error code, most first.
- costobjectrequired
- What the window's WhatsApp messages cost you, priced as the WhatsApp dashboard prices them.
200 response
{
"from": "2026-09-01",
"to": "2026-09-30",
"timezone": "Asia/Kolkata",
"grain": "day",
"sent": 1820,
"delivered": 410,
"read": 1290,
"failed": 34,
"noReceipt": 86,
"received": 2210,
"series": [
{
"bucket": "2026-09-30T00:00:00",
"sent": 61,
"received": 70
}
],
"errors": [
{
"error": "131049",
"n": 21
}
],
"cost": {
"currency": "USD",
"totalMicro": 214350000,
"complete": true,
"byCategory": [
{
"category": "marketing",
"messages": 1200,
"costMicro": 191400000
},
{
"category": "utility",
"messages": 620,
"costMicro": 22950000
}
],
"lines": [
{
"category": "marketing",
"direction": "outbound",
"country": "IN",
"messages": 1200,
"callSeconds": 0,
"billable": 1200,
"costMicro": 191400000
}
]
}
}Last updated November 2026 · Found a problem? Email support@katexs.com
