Nesta área
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".
Parâmetros
statusOPEN | PENDING | RESOLVED | CLOSEDopcional· consultachannelWEB_CHAT | WHATSAPP | EMAIL | INSTAGRAM | MESSENGER | TELEGRAM | APIopcional· consultatostringopcional· consulta- ISO datetime, exclusive
fromstringopcional· consulta- ISO datetime, inclusive
periodtoday | 7d | 30d | 90d | mtd | qtd | ytdopcional· consulta- Preset window. Mutually exclusive with
from/to. Default: 30d.
| Campo | Onde | Tipo | Descrição |
|---|---|---|---|
statusopcional | consulta | OPEN | PENDING | RESOLVED | CLOSED | |
channelopcional | consulta | WEB_CHAT | WHATSAPP | EMAIL | INSTAGRAM | MESSENGER | TELEGRAM | API | |
toopcional | consulta | string | ISO datetime, exclusive |
fromopcional | consulta | string | ISO datetime, inclusive |
periodopcional | consulta | today | 7d | 30d | 90d | mtd | qtd | ytd | Preset window. Mutually exclusive with from/to. Default: 30d. |
Respostas
200
Exemplos
bash
curl -X GET "https://api.cognizy.ai/api/v1/public/analytics" \
-H "Authorization: Bearer $COGNIZY_API_KEY"