Skip to main content
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

The averageWaitingTime field is in milliseconds. To convert:

Filters Explanation

  • agentIds: Comma-separated list to filter specific team members
  • pipelineId: Show only conversations in a specific pipeline
  • stageIds: Show only conversations in specific stages
  • hideArchived: Exclude archived conversations (default: true)
  • hideUnassigned: Exclude unassigned conversations (default: true)

Error Responses

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

x-api-key
string
required

API key

Query Parameters

agentIds
string[]

Optional array of agent IDs to filter by specific agents

Example:
pipelineId
string

Optional pipeline ID to filter by specific pipeline

Example:

"pipeline-id-1"

stageIds
string[]

Optional array of stage IDs to filter by specific stages

Example:
hideArchived
boolean

Optional boolean to filter by archived conversations

Example:

true

hideUnassigned
boolean
required

Response

200 - application/json

Successfully retrieved agent distribution

agentDistribution
object[]