Create Phone

POST/object=mac&action=create

Request URL

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

mac
requiredbody
string

The mac address of the phone.

device
requiredbody
string

This value should be "sip:<device>@<domain>"

model
requiredbody
string

The model of the phone.

server
requiredbody
integer (int32)

Your 5 digit territory ID.

overrides
optionalbody
string

The overrides used to configure the phone.

Default: automatic

Example request

text
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='mac' \
   -d action='create' \
   -d domain='abc-company.11111.service' \
   -d mac='012345678912' \
   -d device='sip:[email protected]'
   -d model='Cisco 7960' \
   -d server='11111'

Responses

200 · application/xml

400 · application/json
{}

More Phone endpoints

Provision, read, update, and resync desk phones.

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