Create Agent

add Agent to call queue

POST/?object=agent&action=create

Request URL

POST
https://uc.hopdial.com/ns-api/?object=agent&action=create

Send 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

NameTypeDescription
device
requiredbody
string

Device of the agent. Must be in the format sip:<device>@<domain>

domain
requiredbody
string

Domain of the agent

queue
requiredbody
string

A queue that the agent participates in

entry_action
requiredbody
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_status
optionalbody
string

Must be "available" or "unavailable"

entry_option
optionalbody
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_limit
optionalbody
integer (int32)

Call Limit

entry_priority
optionalbody
integer (int32)

Agent's priority

entry_order
optionalbody
integer (int32)

Order in Linear Hunt

wrap_up_sec
optionalbody
integer (int32)

Time in between calls

Example request

text
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

200 · application/json
{}
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.