Read Agents in a Call Queue
POST
/?object=agent&action=readRequest URL
POST
https://uc.hopdial.com/ns-api/?object=agent&action=readSend your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.
Parameters
| Name | Type | Description |
|---|---|---|
queue_namerequiredbody | string | Extension of call queue to read agents |
domainrequiredbody | string | Domain of the call queue |
Example request
asp
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='agent' \
-d action='read' \
-d queue_name='101' \
-d domain='abc-comapny.11111.service'Responses
200 · application/json
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<agent>
<device_aor>sip:[email protected]</device_aor>
<huntgroup_name>101</huntgroup_name>
<huntgroup_domain>abc-company.11111.service</huntgroup_domain>
<entry_option>immediate</entry_option>
<wrap_up_sec>0</wrap_up_sec>
<auto_ans>no</auto_ans>
<entry_order>1</entry_order>
<entry_priority>1</entry_priority>
<call_limit>1</call_limit>
<confirm_required>no</confirm_required>
<entry_device>reg</entry_device>
<entry_status>available</entry_status>
<owner_user/>
<owner_domain/>
<session_count>0</session_count>
<error_info/>
<last_update>2018-07-09 15:41:08</last_update>
<device>100</device>
<stat>available</stat>
<sub_domain>abc-company.11111.service</sub_domain>
<sub_firstname>John</sub_firstname>
<sub_lastname>Doe</sub_lastname>
<sub_login>101@abc-comapny</sub_login>
<sub_fullname>John Doe</sub_fullname>
<sub_scope>Basic User</sub_scope>
</agent>
</xml>400 · application/json
{}More Agent endpoints
Manage call queue agents and their availability.
Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.