Create Phone
POST
/object=mac&action=createRequest URL
POST
https://uc.hopdial.com/ns-api/object=mac&action=createSend 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
| Name | Type | Description |
|---|---|---|
domainrequiredbody | string | HopDial domain ex. abc-company.11111.service |
macrequiredbody | string | The mac address of the phone. |
devicerequiredbody | string | This value should be "sip:<device>@<domain>" |
modelrequiredbody | string | The model of the phone. |
serverrequiredbody | integer (int32) | Your 5 digit territory ID. |
overridesoptionalbody | string | The overrides used to configure the phone. Default: |
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.