Get account health
GET /api/accounts/{accountId}/quality
Retrieve the rolling quality health summary for an account. Account health is computed from the recent conversations associated with all contacts in the account.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the account.
Responses
Section titled “ Responses ”The account health summary.
Rolling quality health summary for an account, computed from recent conversations.
object
The account this health summary belongs to.
Example
acc_12345678-abcd-ef01-2345-678901234567Rolling average composite score across recent conversations.
Example
3.85Rolling average outcome dimension score.
Example
3.92Rolling average process dimension score.
Example
3.78Rolling average environment dimension score.
Example
3.85Fraction of conversations that reached a resolution.
Example
0.88Total conversations included in the rolling window.
Example
42True when the account has had three or more consecutive low CSAT scores.
Number of consecutive conversations scoring below the low-composite threshold.
Example
2Direction of recent scores.
Example
decliningNo account exists with the given ID or no health data is available.
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"]