Create Subscriber

creates user

POST/?object=subscriber&action=create

Request URL

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

HopDial domain ex. abc-company.11111.service

user
requiredbody
string

Normally a 3, 4, 5, or 10 digit number. (This can be an alpha-numeric string as well)

data_limit
optionalbody
integer (int32)

Number of kb of voicemails that can be kept on the system. Must be either 5000, 10000, 25000, 50000, 100000, or 250000.

Default: 5000

screen
optionalbody
string

Must be "yes" or "no"

subscriber_login
optionalbody
string

Username to the Manager portals.

Default: <extension>@<domain prefix>

password
optionalbody
string

Manager portal password.

subscriber_pin
optionalbody
integer (int32)

Voicemail password.

group
optionalbody
string

This is the "Department" and helps group Subscribers together. An example would be '"Sales"

time_zone
optionalbody
string

Example "US/Eastern"

language
optionalbody
string

The language to be used in the portal

dir_anc
optionalbody
string

Must be "yes" or "no"

directory_order
optionalbody
integer (int32)

If 2 or more subscribers have the same directory sequence.

vmail_greeting
optionalbody
integer (int32)

Index of the greeting to use for Voicemail

vmail_enabled
optionalbody
string

Must be "yes" or "no"

rej_anony
optionalbody
string

Must be "yes" or "no". Will reject any call routed to this Subscriber that is anonymous or has privacy set.

vmail_annc_time
optionalbody
string

Must be "yes" or "no". Will announce voicemail time before listening to a subscriber Voicemail

vmail_annc_cid
optionalbody
string

Must be "yes" or "no". Will announce the ANI of the call before listening to a voicemail

vmail_sort_lifo
optionalbody
string

Must be "yes" or "no".

ntfy_missed_call
optionalbody
string

Must be "yes" or "no". Will send an email whenever a call is missed by this subscriber

ntfy_data_limit
optionalbody
string

Must be "yes" or "no". Will send an email when voicemail data limit has been reached

dial_policy
optionalbody
string

Must be a valid Dial Policy. Any dial policy found in the Manager portal can be used here. (Case sensitive)

dial_plan
optionalbody
string

Must be the same as the domain

Default: domain

callid_emgr
optionalbody
integer (int32)

Must be 10 digit number

callid_nmbr
optionalbody
integer (int32)

Must be 10 digit number

callid_name
optionalbody
string

Can be any Alpha-numeric string

dir_list
optionalbody
string

Must be "yes" or "no"

vmail_notify
optionalbody
string

Must be "attnew", ""attsave", "atttrash","briefattnew", "briefattsave", or "briefatttrash"

email
optionalbody
string

Any valid email address

last_name
optionalbody
string

Any alpha-numeric string

first_name
optionalbody
string

Any alpha-numeric string

no_answer_timeout
optionalbody
integer (int32)

Amount of seconds call should attempt the active answering rule for the subscriber

Example request

shell
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='subscriber' \
   -d action='create' \
   -d domain='abc-company.11111.service' \
   -d user="1000"	\
   -d first_name="Fake" \
   -d last_name="Name"

Responses

200 · application/xml

400 · application/json
{}

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.