Get team member distribution of open conversations
Team Analytics
Get team member distribution of open conversations
Returns the distribution of open conversations across different agents with average waiting time
GET
Get team member distribution of open conversations
Overview
Get the distribution of open conversations across your team members, including how many conversations each agent has and their average waiting time. This provides a snapshot of current workload distribution and helps identify bottlenecks. Perfect for real-time monitoring of team workload and ensuring balanced distribution of conversations.Use Cases
- Workload Dashboard: Monitor current workload across team
- Load Balancing: Identify agents with too many/few conversations
- Assignment Decisions: Determine which agent to assign new conversations to
- Performance Monitoring: Track average waiting time per agent
- Team Management: See whoβs handling conversations and how quickly
- Capacity Planning: Understand team capacity and bottlenecks
Authentication
This endpoint requires authentication using an API key. Include your API key in the request header:Query Parameters
Response Structure
Team Member Distribution Object
Example Request
With Filters
Example Response
Common Use Cases
1. Find Team Member with Least Workload
2. Display Workload Dashboard
3. Balance Workload Alert
4. Filter by Pipeline
Average Waiting Time
TheaverageWaitingTime field is in milliseconds. To convert:
Filters Explanation
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)
Error Responses
Related Endpoints
- GET /api/analytics/team/snapshot/average-first-response-time - Team average first response
- GET /api/public/team-members/all - Get list of all team members
Notes
- Real-time Snapshot: Returns current state of open conversations
- Only Active Team Members: Team members with no conversations wonβt appear
- Waiting Time: Time since last customer message
- Milliseconds: All time values in milliseconds
Headers
API key
Query Parameters
Optional array of agent IDs to filter by specific agents
Example:
Optional pipeline ID to filter by specific pipeline
Example:
"pipeline-id-1"
Optional array of stage IDs to filter by specific stages
Example:
Optional boolean to filter by archived conversations
Example:
true
Response
200 - application/json
Successfully retrieved agent distribution
