Returns the distribution of open conversations across different agents with average waiting time
| Parameter | Type | Required | Description |
|---|---|---|---|
agentIds | string[] | No | Filter by specific team member IDs |
pipelineId | string | No | Filter by specific pipeline |
stageIds | string[] | No | Filter by specific stages |
hideArchived | boolean | No | Hide archived conversations (default: true) |
hideUnassigned | boolean | No | Hide unassigned conversations (default: true) |
| Field | Type | Description |
|---|---|---|
agentDistribution | array | Array of agent distribution objects |
| Field | Type | Description |
|---|---|---|
agent_id | string (UUID) | Team memberβs unique identifier |
agent_name | string | Team memberβs full name |
count | number | Number of open conversations assigned to this team member |
averageWaitingTime | number | Average waiting time in milliseconds |
averageWaitingTime field is in milliseconds. To convert:
agentIds: Comma-separated list to filter specific team memberspipelineId: Show only conversations in a specific pipelinestageIds: Show only conversations in specific stageshideArchived: Exclude archived conversations (default: true)hideUnassigned: Exclude unassigned conversations (default: true)| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 500 | Internal Server Error - Something went wrong |
API key
Optional array of agent IDs to filter by specific agents
["agent-id-1", "agent-id-2"]Optional pipeline ID to filter by specific pipeline
"pipeline-id-1"
Optional array of stage IDs to filter by specific stages
["stage-id-1", "stage-id-2"]Optional boolean to filter by archived conversations
true
Successfully retrieved agent distribution