Read Subscriber

show user settings

POST/?object=subscriber&action=read

Request URL

POST
https://uc.hopdial.com/ns-api/?object=subscriber&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.

Parameters

NameTypeDescription
domain
optionalbody
string

Filters subscribers by domain

user
optionalbody
string

Filters subscribers by user. (Do not include parameter if you wish to get all subscribers for a single domain)

limit
optionalbody
integer (int32)

Number of Subscribers to be fetched

sort
optionalbody
string

Must be "user asc" or "user desc"

Default: user asc

Example request

shell
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='subscriber' \
   -d action='read' \
   -d domain='abc-company.11111.service' \
   -d start='0'		\
   -d limit='10'

Responses

200 · application/xml
<?xml version="1.0" encoding="UTF-8"?>
<xml>
   <subscriber>
      <dir />
      <user>1000</user>
      <domain>abc-company.11111.service</domain>
      <message />
      <vmail_provisioned>yes</vmail_provisioned>
      <screen>yes</screen>
      <no_answer_timeout>0</no_answer_timeout>
      <first_name />
      <last_name />
      <group>n/a</group>
      <subscriber_login>1000~abc-company</subscriber_login>
      <pwd>1234</pwd>
      <language />
      <data_limit>5000</data_limit>
      <call_limit>0</call_limit>
      <time_zone>US/Eastern</time_zone>
      <dir_anc>no</dir_anc>
      <directory_order>1</directory_order>
      <vmail_greeting>0</vmail_greeting>
      <vmail_enabled>yes</vmail_enabled>
      <rej_anony>no</rej_anony>
      <vmail_annc_time>no</vmail_annc_time>
      <vmail_annc_cid>no</vmail_annc_cid>
      <vmail_sort_lifo>no</vmail_sort_lifo>
      <vmail_notify />
      <email />
      <ntfy_missed_call>no</ntfy_missed_call>
      <ntfy_data_limit>no</ntfy_data_limit>
      <dial_plan>Mix Networks</dial_plan>
      <dial_policy>Permit All</dial_policy>
      <callid_nmbr>4071111111</callid_nmbr>
      <callid_name>[*]</callid_name>
      <callid_emgr>4071111111</callid_emgr>
      <area_code>407</area_code>
      <presence>inactive</presence>
      <dir_list>no</dir_list>
      <date_created>0000-00-00 00:00:00</date_created>
      <srv_code />
      <scope>Basic User</scope>
      <last_update>2016-02-25 11:11:25</last_update>
      <gauSession>0</gauSession>
      <pwd_hash />
      <vmail_transcribe />
   </subscriber>
   <subscriber>
      <dir>768</dir>
      <user>1001</user>
      <domain>abc-company.11111.service</domain>
      <message />
      <vmail_provisioned>no</vmail_provisioned>
      <screen>yes</screen>
      <no_answer_timeout>45</no_answer_timeout>
      <first_name>Xvox</first_name>
      <last_name>Routing</last_name>
      <group>n/a</group>
      <subscriber_login>1001~abc-company</subscriber_login>
      <pwd>5805</pwd>
      <language />
      <data_limit>0</data_limit>
      <call_limit>0</call_limit>
      <time_zone>US/Eastern</time_zone>
      <dir_anc>no</dir_anc>
      <directory_order>1</directory_order>
      <vmail_greeting>0</vmail_greeting>
      <vmail_enabled>no</vmail_enabled>
      <rej_anony>no</rej_anony>
      <vmail_annc_time>no</vmail_annc_time>
      <vmail_annc_cid>no</vmail_annc_cid>
      <vmail_sort_lifo>no</vmail_sort_lifo>
      <vmail_notify />
      <email />
      <ntfy_missed_call>no</ntfy_missed_call>
      <ntfy_data_limit>no</ntfy_data_limit>
      <dial_plan>Mix Networks</dial_plan>
      <dial_policy>Permit All</dial_policy>
      <callid_nmbr>4071111111</callid_nmbr>
      <callid_name>[*]</callid_name>
      <callid_emgr>4071111111</callid_emgr>
      <area_code>407</area_code>
      <presence>inactive</presence>
      <dir_list>no</dir_list>
      <date_created>0000-00-00 00:00:00</date_created>
      <srv_code />
      <scope>Basic User</scope>
      <last_update>2016-02-25 11:11:25</last_update>
      <gauSession>0</gauSession>
      <pwd_hash>2e543465691bf4881b1ee6006358e33ed104ad71</pwd_hash>
      <vmail_transcribe />
   </subscriber>
</xml>

More Subscriber endpoints

List, read, create, update, and remove users (extensions) on your domain.

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