Provide add/remove/pause/unpause agent from queue remotely.
API URL:
https:// voiptech.pri /API/UpdateAgentState.php
Example:
https:// voiptech.pri /API/UpdateAgentState.php?action=pause&agent=xxx&[email protected]&password=yyyy
This API allows you to perform the following operations:
- Pause/Unpause agent from specific/all queues with optional reason
- Add/Remove agent from queue.
- Show specific queue statistics or all organization queues statistics.
Option to send request:
- GET
Response format:
- JSON
Available parameters
Demand | Description | Parameter |
Mandatory | Organization user name | username |
Mandatory | Organization user password (recommended to use MD5) | password |
Mandatory | pause – pause specific agent from queue. Agent parameter must be set. If queue parameter is set then the agent will be paused from this queue if not, agent will be paused from all queues.
Reason parameter can be followed the queue name with optional pause reason ; unpause – unpause specific agent (same optional as pause above); showqueue – provide queue information (with queue parameter) or all organization queues when no queue parameter set . showqueuestat – provide queue statistics (with queue parameter) or all organization queues when no queue parameter set . add – add agent to queue. Queue parameter must be set ; remove – remove agent from queue. Queue parameter must be set; showstate – provide agent state with reason. Agent parameter must be set |
action |
Per action | Set the phone number where the specific agent sitting now.
Agent should first login and after successful login send this parameter where he's sitting. |
agent |
Per action | System queue number | queue |