v1
latestOpenAPI 3.0.02026-07-2612645160.3 KBTeam Analytics
Get team member distribution of open conversations
Returns the distribution of open conversations across different agents with average waiting time
get/api/analytics/team/snapshot/agent-distribution
Query parameters
agentIdsstring[]
Optional array of agent IDs to filter by specific agents
[ "agent-id-1", "agent-id-2" ]
pipelineIdstring
Example:pipeline-id-1
Optional pipeline ID to filter by specific pipeline
stageIdsstring[]
Optional array of stage IDs to filter by specific stages
[ "stage-id-1", "stage-id-2" ]
hideArchivedboolean
Example:true
Optional boolean to filter by archived conversations
hideUnassignedboolean required
Headers
x-api-keystring required
API key
Response
Successfully retrieved agent distribution
Example response
{
"agentDistribution": [
{
"agent_id": "agent-123",
"agent_name": "John Doe",
"count": 15,
"averageWaitingTime": 1800000
}
]
}