Get conversation statistics
GET /api/workspaces/{workspaceId}/consumption/conversation-stats
Retrieve conversation volume and resolution metrics for a workspace.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The workspace to get stats for.
Query Parameters
Section titled “Query Parameters ”Predefined period: current, previous, last_90d (default current).
Start of custom range in ISO 8601 format (overrides period).
End of custom range in ISO 8601 format (overrides period).
Responses
Section titled “ Responses ”Conversation statistics for the requested period.
Conversation volume and resolution metrics for a workspace over a billing period.
object
Total number of conversations in the period.
Example
482Number of resolved conversations.
Example
439Breakdown by resolution type.
object
Example
387Example
52Example
28Example
15Breakdown by channel type.
object
Example
{ "email": 310, "chat": 142, "whatsapp": 30}Breakdown by detected intent.
object
Start of the period.
Example
2026-03-01T00:00:00.000ZEnd of the period.
Example
2026-03-31T23:59:59.999ZThe query is not one this endpoint reads: period is not one of the predefined periods, from or to does not parse as a date or falls in a year before 1 or after 9999, from is after to, or the range is longer than one year.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not foundA machine-readable reason on some refusals, for example ‘key_lock’ when an API key’s brand or workspace restriction does not cover the action.
Example
key_lockOn a 403 for an API key without a scope the endpoint requires: the scopes the key lacks.
Example
[ "mcp:write"]On a 409 with code duplicate_question or duplicate_rule_text: the knowledge base entry or policy that already holds the question or rule text.
Example
11223344-5566-4788-99aa-bbccddeeff00On a 422 about one MCP connection a request names, from an assignment or an agent create or update (a connection that does not exist, one listed twice, or one that does not declare a tool named): the connection, as the request named it.
On the same 422: the tool names the connection does not declare.
Example
[ "get_orders"]On the same 422: the tools the connection declares.
Example
[ "get_order", "search_orders"]