The Agent Status API is part of Voiso's Agent Application APIs. Use it to obtain the email address, extension, and current availability status of every agent in the contact center.
Please refer to the detailed API endpoint specification: Get agents status
Prerequisites
- You must have access to your contact center API key.
- You must have at least one user for your contact center.
Making requests
The Agent Status API requires the Base URL (cluster_id) and the The contact center API key (client_api_key). It uses the following parameters to initiate a call:
The contact center API key. Voiso responds with a list of all agents and their current availability status.
For example:
https://cluster1.voiso.com/api/v1/cc7c76b8b...b80ab6c3/agents_status
Response
The response contains an array of information about each user, including their sign-in email address, phone extension, and current status.
The following table describes the elements of the response.
Element | Description | Type | Notes |
---|---|---|---|
The user's sign-in email address. | string | ||
ext | The user's phone extension. | string | |
status | The user's current availability status. | string | Valid values are: Available, Idle, Logout, Outbound, Inbound, Dialer waiting, and Unavailable with one of the unavailable codes defined for your contact center. |
Response sample
[
{
"email": "[email protected]",
"ext": "7777",
"status": "available"
},
{
"email": "[email protected]",
"ext": "5555",
"status": "unavailable"
}
]
Troubleshooting
The following issues are sometimes encountered:
Invalid key
The Agent Status API requires the contact center API key to validate the request. If you see this error, "error": "Invalid key"
, check that you are using the correct contact center API key. For more information about API keys, refer to Authentication.