Create Agent
add Agent to call queue
/?object=agent&action=createRequest URL
https://uc.hopdial.com/ns-api/?object=agent&action=createSend 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 |
|---|---|---|
devicerequiredbody | string | Device of the agent. Must be in the format sip:<device>@<domain> |
domainrequiredbody | string | Domain of the agent |
queuerequiredbody | string | A queue that the agent participates in |
entry_actionrequiredbody | string | make_im is equivelent to "log in to all queue". make_av is equivelent to "make available in all queues for 1 call", "make_ma" is "Log out of all queues" |
entry_statusoptionalbody | string | Must be "available" or "unavailable" |
entry_optionoptionalbody | string | Used to set a entry or login status for the device in a queue. Only needed when using "update" or "make_av" for entry_action. Must be "manual", "immediate", "available", or "disabled" |
call_limitoptionalbody | integer (int32) | Call Limit |
entry_priorityoptionalbody | integer (int32) | Agent's priority |
entry_orderoptionalbody | integer (int32) | Order in Linear Hunt |
wrap_up_secoptionalbody | integer (int32) | Time in between calls |
Example request
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='agent' \
-d action='create' \
-d device='sip:[email protected]' \
-d queue='123' \
-d domain='abc-company.11111.service' \
-d entry_action='make_im' \
-d entry_option='immediate' \
-d entry_status='available'
Responses
{}{}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.