Count conversations
Count the conversations list_conversations returns for the same filters (every filter it takes, without sort), up to 10,000: capped then says at least that many match. averageMessageCount and averageDurationSeconds are their average length. groupBy also divides them, largest group first, each with its outcomes: by outcome, status, channel, agent, sentiment, tool (which Agent tools they used, and in how many a tool failed), toolError (why calls of toolName failed) or fact:<definition key> (such as the reason for contact). Use it to answer how many conversations match, or how they divide, instead of paging through the list; for volumes per day use get_report.
- Scopes: any one of
raiz:conversations:read,raiz:conversations:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: read-only; safe to retry
- Limits: response up to 1 MB
- CLI:
arbol raiz conversations count· MCP tool:raiz_conversations_count
https://api.getarbol.com/v1/raiz/conversations/countAuthorization
Query parameters
- handlingoptionalaiorteamorescalated
ai: conversations the AI takes part in (calls and web chats, and WhatsApp conversations the AI handles or answered).team: WhatsApp conversations the organization's people handle on their own.escalated: conversations the AI handed to the team (a request it could not resolve, a contact who asked for a person, or a spent budget), also once the team gave them back to the AI; the onesconversations_dailycounts inescalatedCount. A trial is not one, nor a conversation that opens while the AI is still paused for the number after an earlier handoff. - workeroptionalaiorteam
Who works the conversation now.
ai: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered.team: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlikehandling, a conversation the AI answered and then handed to people isteamwhile open. - qoptionalstring
Search participant names, channel profile names, usernames, phones, emails, identity documents, visible message text, conversation ids and exact external references. Ignores accents/case and phone/document formatting. Also searches titles and summaries with Spanish stemming (quoted phrases,
orand-wordapply there). Attachments without stored transcription and tool payloads are not searched.maxLength: 200 · minLength: 1 - groupByoptionalstring
outcome,status,channel(type),agent,sentiment,tool(each Agent tool and the conversations that used it; null for those that used none),toolError(failed calls, oftoolNamewhen given, by error) orfact:<definition key>(the current value of that definition, such as the reason for contact).pattern: ^(outcome|status|channel|agent|sentiment|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$
Returns
200
Successful operation.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.