In this area
Analytics
Aggregated tenant metrics.
Get organization analytics
get/v1/public/analytics
Returns aggregated stats (totals, by-channel, by-status), recent activity, and a daily conversation count series for the requested window. Use this from MCP/external agents to answer questions like "how was last week" or "what channel is busiest".
Parameters
statusOPEN | PENDING | RESOLVED | CLOSEDoptional· querychannelWEB_CHAT | WHATSAPP | EMAIL | INSTAGRAM | MESSENGER | TELEGRAM | APIoptional· querytostringoptional· query- ISO datetime, exclusive
fromstringoptional· query- ISO datetime, inclusive
periodtoday | 7d | 30d | 90d | mtd | qtd | ytdoptional· query- Preset window. Mutually exclusive with
from/to. Default: 30d.
| Field | In | Type | Description |
|---|---|---|---|
statusoptional | query | OPEN | PENDING | RESOLVED | CLOSED | |
channeloptional | query | WEB_CHAT | WHATSAPP | EMAIL | INSTAGRAM | MESSENGER | TELEGRAM | API | |
tooptional | query | string | ISO datetime, exclusive |
fromoptional | query | string | ISO datetime, inclusive |
periodoptional | query | today | 7d | 30d | 90d | mtd | qtd | ytd | Preset window. Mutually exclusive with from/to. Default: 30d. |
Responses
200
Examples
bash
curl -X GET "https://api.cognizy.ai/api/v1/public/analytics" \
-H "Authorization: Bearer $COGNIZY_API_KEY"