Read Phone
show phone settings
POST
/?object=mac&action=readRequest URL
POST
https://uc.hopdial.com/ns-api/?object=mac&action=readSend 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 |
|---|---|---|
macrequiredbody | string | The mac address of phone |
domainrequiredbody | string | HopDial domain ex. abc-company.11111.service |
Example request
text
curl https://uc.hopdial.com/ns-api/ \
-H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
-d object='mac' \
-d action='read' \
-d mac='012345678912' \
-d domain='abc-comapny.11111.service'Responses
200 · application/xml
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<mac>
<mac>012345678912</mac>
<server>11111</server>
<territory>11111</territory>
<dir_inc>disabled</dir_inc>
<presence>disabled</presence>
<domain>abc-company.11111.service</domain>
<model>Yealink T46S</model>
<device1>sip:[email protected]</device1>
<device2>n/a</device2>
<device3>n/a</device3>
<device4>n/a</device4>
<device5>n/a</device5>
<device6>n/a</device6>
<device7>n/a</device7>
<device8>n/a</device8>
<notes/>
<line1_share>private</line1_share>
<line2_share>private</line2_share>
<line3_share>private</line3_share>
<line4_share>private</line4_share>
<line5_share>private</line5_share>
<line6_share>private</line6_share>
<transport>udp</transport>
<overrides></overrides>
<auth_user/>
<auth_pass/>
<phone_ext>100</phone_ext>
<fxs>0</fxs>
<sla>yes</sla>
<sidecar>yes</sidecar>
<resync>yes</resync>
<directory_support>yes</directory_support>
<user_agent>Yealink SIP-T46S 66.82.0.36</user_agent>
<contact>sip:[email protected]:5060</contact>
<registration_expires_time>2018-06-29 15:27:16</registration_expires_time>
<registration_time>2018-06-29 15:25:26</registration_time>
</mac>
</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.