Usage
Get Calls Summary
Call totals for the last days — calls, inbound, outbound, answered, missed, failed, seconds, what they cost, by surface — and a series by hour (days=1) or by day, bucketed in your workspace's time zone. The dashboard's calls figures. Any key may call this, a read-only key included.
GET/calls/summary
Query parameters
- daysinteger
- The rolling window. Default:
7. Range: 1–90.
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/calls/summary" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | Call totals. |
400 | days out of range. |
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
- daysintegerrequired
- The window asked for.
- timezonestringrequired
- Your workspace's time zone, which buckets are in.
- grainstringrequired
hourwhendaysis 1, elseday. One of:hour,day.- callsintegerrequired
- All calls.
- inboundintegerrequired
- Inbound calls.
- outboundintegerrequired
- Outbound calls.
- answeredintegerrequired
- Calls that connected.
- missedintegerrequired
- Calls that never connected and were missed or completed unanswered.
- failedintegerrequired
- Calls that never connected and failed.
- secondsintegerrequired
- Total call seconds.
- debitMicrointegerrequired
- What the calls cost you (a white-label client's at its reseller's price). Integer micro-units of
currency: 1000000 is one dollar. - surfacesobjectrequired
- Calls by surface.
- seriesobject[]required
- One bucket per hour or day, in your time zone.
200 response
{
"days": 7,
"timezone": "Asia/Kolkata",
"grain": "day",
"calls": 230,
"inbound": 140,
"outbound": 90,
"answered": 198,
"missed": 26,
"failed": 6,
"seconds": 41820,
"debitMicro": 1394000000,
"surfaces": {
"phone": 210,
"web": 14,
"whatsapp": 6
},
"series": [
{
"bucket": "2026-10-06T00:00:00",
"inbound": 22,
"outbound": 15,
"answered": 33,
"missed": 4,
"minutes": 118.4
}
]
}Last updated November 2026 · Found a problem? Email support@katexs.com
