Reports
Get conversation volume, service numbers and costs of your account for a period.
Three reports bring the numbers of your account into your own dashboards:
- Conversation statistics: number of services, messages and tickets, split by channel and by after-hours, with monthly and daily history.
- Financial statistics: conversations per month and per day, with the cost based on your contracted price per service.
- AI costs: what the AI models cost in the period, per model, and the average cost per conversation.
Dates use the YYYY-MM-DD format.
Conversation statistics
ReferenceTechnical details
POST /api/externalAPIs/public/tolkyReasoning/reports/getConversationalStats
| Parameter | Type | Required | Description |
|---|---|---|---|
hostId | string (UUID) | Yes | Your account ID. |
startDate | string | No | Start of the period. Default: 30 days ago. |
endDate | string | No | End of the period. Default: today. |
bypassCache | boolean | No | true recalculates. Otherwise results are cached for 5 minutes when the period includes today, 3 hours for past periods. |
curl -X POST "https://api.tolky.to/api/externalAPIs/public/tolkyReasoning/reports/getConversationalStats" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "hostId": "<your-host-id>", "startDate": "2026-10-01", "endDate": "2026-10-31" }'data is an array with one object:
| Field | Description |
|---|---|
total_contracted_services | Services in your plan. |
total_services, services_month_to_date | Services in the period and in the current month. |
total_messages, total_messages_sent_by_avatar, total_messages_received_by_user | Messages. |
total_messages_responder_manager | Messages sent by your team. |
total_services_after_hours, total_messages_after_hours | Activity outside business hours. |
total_tickets, total_opened_tickets, total_solved_tickets | Tickets. |
services_on_whatsapp, services_on_webchat, services_on_minichat, services_on_api, services_on_other_channels | Services per channel. |
history_months, history_days | History series for charts. |
meta | generated_at and from_cache. |
Financial statistics
ReferenceTechnical details
POST /api/externalAPIs/public/tolkyReasoning/reports/getFinancialStats
| Parameter | Type | Required | Description |
|---|---|---|---|
hostId | string (UUID) | Yes | Your account ID. |
startDate | string | No | Start of the daily series. Default: 30 days ago. |
endDate | string | No | End of the period. Default: today. The monthly series covers the 12 months up to this date. |
curl -X POST "https://api.tolky.to/api/externalAPIs/public/tolkyReasoning/reports/getFinancialStats" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "hostId": "<your-host-id>", "startDate": "2026-10-01", "endDate": "2026-10-31" }'data is an array with one object:
| Field | Description |
|---|---|
host_plan | Your plan, including service_pricing_contracted (price per service). |
history_months | One item per month: mês (first day of the month), total_conversations, total_cost. |
history_days | One item per day: dia, total_conversations, total_cost. |
meta | generated_at. |
total_cost is the number of conversations times your price per service.
AI costs
Cost data is consolidated once a day, so the most recent day available is usually yesterday. If you ask for a later end date, the report uses the last day available and tells you.
ReferenceTechnical details
POST /api/externalAPIs/public/tolkyReasoning/reports/getCostByHostId
| Parameter | Type | Required | Description |
|---|---|---|---|
hostId | string (UUID) | No | Your account ID. Default: the account of the token. |
startDate | string | No | Default: first day of the current month. |
endDate | string | No | Default: today, limited to the last day available. |
curl -X POST "https://api.tolky.to/api/externalAPIs/public/tolkyReasoning/reports/getCostByHostId" \
-H "Authorization: Bearer $TOLKY_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "startDate": "2026-10-01", "endDate": "2026-10-31" }'| Field | Description |
|---|---|
costs | One item per model, most expensive first: model, provider, total_tokens, prompt_tokens, response_tokens, total_cost_usd, total_cost_brl (converted at the current rate plus 3.5% IOF tax), exchange_rate_usd_to_brl, iof_rate. |
cost_per_conversation | Average cost per conversation for last_10_conversations, last_24h_conversations, last_7days_conversations and period_conversations: average_cost_usd, average_cost_brl and, except for the last 10, total_conversations. |
host_info | Your plan: contracted services and price per service. |
currency_info | usd_to_brl_rate, iof_rate, last_updated. |
filter_dates | Requested and applied dates, and was_clamped (true when the end date was moved back). |
data_last_updated | Last day with cost data. |
Results are cached for 2 minutes.
Errors
ErrorsTechnical details
| Status | When |
|---|---|
500 | The report could not be calculated. |
When hostId is missing or the period has no data, the statistics reports return zeros or an empty data array instead of an error.