Skip to content

Agent Monitor API

Real-time monitoring of agent activity, campaigns, and queues.

Endpoints

Agent Monitor—Logout

Logout agents from the system.

Endpoint: POST /agent-monitor/logout

Authentication: Required (auth_token)

Parameters

NameTypeRequiredDescription
auth_tokenstringYesAuthentication token
user_idstringYesUser ID for the agent to be logged out

Request Example

POST https://api.convoso.com/v1/agent-monitor/logout?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

user_id=12345

Response Example

json
{
  "success": true
}

Response Fields

FieldTypeDescription
successbooleanSuccess status of the logout operation

Error Codes

CodeDescription
6006Missing or invalid user
6012User is not logged in

Agent Monitor Search API

Provides real-time monitoring data about agents, campaigns, and queues.

Endpoint: POST /agent-monitor/search

Authentication: Required (auth_token)

Parameters

NameTypeRequiredDescription
auth_tokenstringYesAuthentication token
campaign_idstringNoFilter by specific campaign ID
queue_idstringNoFilter by specific queue ID
user_idstringNoFilter by specific user/agent ID
filter_by_skill_optionsstringNoFilter by skill options (comma-separated values)

Request Example

POST https://api.convoso.com/v1/agent-monitor/search?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

campaign_id=111&queue_id=222

Response Example

json
{
  "agents": [
    {
      "user_id": "12345",
      "user_full_name": "Jane Smith",
      "campaign_id": "111",
      "campaign_name": "Sales Campaign",
      "queue_id": "222",
      "queue_name": "Main Queue",
      "queue_assignment": "2023-03-01 09:00:00",
      "list_id": "333",
      "extension": "1001",
      "channel_type": "phone",
      "call_type": "outbound",
      "lead_id": "54321",
      "call_log_id": "789",
      "calls_today": 42,
      "total_calls": 150,
      "status": "READY",
      "status_label": "Ready for calls",
      "status_time_sec": 300,
      "status_time_mmss": "05:00",
      "connection_type": "softphone",
      "skill_options": "english,sales"
    }
  ],
  "call_data": {
    "total_calls": 500,
    "answered": 450,
    "dropped": 20
  },
  "queue_dialable_leads": 1200,
  "queue_calls_today": 500,
  "queue_dropped": 20,
  "queue_answered": 450,
  "agent_total": 25,
  "agent_incall": 15,
  "agent_ready": 8,
  "agent_paused": 2
}

Response Fields

Root Level
FieldTypeDescription
agentsarrayArray of agent objects with real-time status and metrics
call_dataobjectAggregated call statistics for the selected scope
queue_dialable_leadsintegerNumber of dialable leads available in queue
queue_calls_todayintegerTotal calls processed by queue today
queue_droppedintegerNumber of dropped calls in queue
queue_answeredintegerNumber of answered calls in queue
agent_totalintegerTotal number of agents
agent_incallintegerNumber of agents currently in a call
agent_readyintegerNumber of agents ready to take calls
agent_pausedintegerNumber of agents currently paused
Agent Object Fields
FieldTypeDescription
user_idstringUnique agent identifier
user_full_namestringFull name of the agent
campaign_idstringID of current campaign
campaign_namestringName of current campaign
queue_idstringID of current queue
queue_namestringName of current queue
queue_assignmentstringDate/time assigned to queue
list_idstringID of current list being called
extensionstringAgent phone extension
channel_typestringCommunication channel (phone, email, chat, etc.)
call_typestringType of call (inbound, outbound)
lead_idstringCurrent lead being worked
call_log_idstringCurrent call log entry ID
calls_todayintegerNumber of calls this agent made today
total_callsintegerTotal calls for current session
statusstringCurrent status code (READY, INCALL, PAUSED, etc.)
status_labelstringHuman-readable status label
status_time_secintegerSeconds in current status
status_time_mmssstringTime in MM:SS format
connection_typestringConnection type (softphone, VoIP, desk phone, etc.)
skill_optionsstringComma-separated list of agent skills

Error Codes

CodeDescription
6006Missing or invalid user
6026Invalid campaign ID
6041Invalid queue ID

Use Cases

  1. Real-time Dashboard: Display current agent status and availability
  2. Queue Management: Monitor queue depth and active agents
  3. Performance Tracking: Track calls and activity in real-time
  4. Workload Distribution: Identify underutilized or overloaded agents
  5. Campaign Monitoring: Monitor campaign progress and agent allocation

Filtering Examples

By Campaign:

POST https://api.convoso.com/v1/agent-monitor/search?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

campaign_id=111

By Queue:

POST https://api.convoso.com/v1/agent-monitor/search?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

queue_id=222

By Specific Agent:

POST https://api.convoso.com/v1/agent-monitor/search?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

user_id=12345

By Skills:

POST https://api.convoso.com/v1/agent-monitor/search?auth_token=abc123
Content-Type: application/x-www-form-urlencoded

filter_by_skill_options=english,spanish,sales

Notes

  • Response includes current snapshot of agent statuses
  • Data updates in real-time as agents change status
  • Use campaign_id or queue_id to filter large agent populations
  • Skill filters are comma-separated and match agent skill assignments
  • Status codes vary by configuration but typically include: READY, INCALL, PAUSED, LOGGED_OUT, etc.
  • Per the Admin API reference, ALL Convoso API endpoints use POST method

Common Status Codes

Status CodeDescription
READYAgent is ready to take calls
INCALLAgent is currently on a call
PAUSEDAgent is on pause (break, lunch, etc.)
LOGGED_OUTAgent has logged out
WRAPAgent is in wrap-up mode after call
RINGINGCall is ringing to agent
TRANSFERCall is being transferred

Error Handling

Both endpoints may return errors for invalid parameters or authentication failures. Common error scenarios:

IssueResponse
Invalid auth_token{"success": false, "error": "Invalid authentication token"}
User not found{"success": false, "error": "User not found"}
Campaign not found{"success": false, "error": "Campaign not found"}
Queue not found{"success": false, "error": "Queue not found"}

Last Updated: 2026-03-03

Community project — not affiliated with or endorsed by Convoso.