Read User Device

show device settings

POST/?object=device&action=read

Request URL

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

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.

This API call allows clients to retrieve a list of devices.

Parameters

NameTypeDescription
owner_domain
requiredbody
string

Filter devices by the domain of the owner.

owner
optionalbody
string

Filter devices by the username (e.g. extension) of the owner of the devices.

limit
optionalbody
integer (int32)

Number of devices to be fetched.

Default: 0

sort
optionalbody
string

Sort by the specified field in ascending (asc) or descending (desc) order.

Default: user asc

Example request

text
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='device' \
   -d action='read' \
   -d owner_domain='abc-company.11111.service' \
   -d owner='100' \
   -d start='0'		\
   -d limit='10'	\
   -d sort='user asc'

Responses

200 · application/xml
<?xml version="1.0" encoding="UTF-8"?>
<xml>
   <device>
      <aor>sip:[email protected]</aor>
      <mode>unknown</mode>
      <user_agent>Z 3.3.21933 r21903</user_agent>
      <received_from>1.2.4.5:418335</received_from>
      <registration_time>2016-03-03 16:21:28</registration_time>
      <subscriber_name>100</subscriber_name>
      <subscriber_domain>abc-company.11111.service</subscriber_domain>
      <authentication_key>83819387</authentication_key>
      <call_processing_rule />
      <registration_expires_time>2016-03-03 16:21:28</registration_expires_time>
      <sub_fullname>John Smith</sub_fullname>
      <sub_login>100~abc-company</sub_login>
      <sub_scope>Office Manager</sub_scope>
      <ndperror>0</ndperror>
   </device>
</xml>

More Device endpoints

Manage the SIP devices registered to each user.

Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.