Query the Information of an IP Phone
Query the auto provisioning information of a specific IP phone.
Request URL
GET {base_url}/{api_path}/phone/get?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | Integer | The unique ID of the IP phone. Note: You
can query the phone's ID using Search Specific IP Phones. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| data | Array<Phone_Details> | The detailed information of the IP phone. |
- Phone_Details
-
Table 2. Parameter Type Description mac String The MAC address of the IP phone. vendor String Phone vendor. model String Phone model. template_name String The name of the provisioning template applied to the IP phone. provisioning_method String The provisioning method of the IP phone. rps: RPSpnp_via_onsite_proxy: PnP (via Onsite Proxy)dhcp_via_onsite_proxy: DHCP (via Onsite Proxy)
provisioning_link String The provisioning link for the IP phone. enb_rps_auth Integer Whether authentication for the first-time auto provisioning is enabled. 0: Disabled. Authentication is not required.-
1: Enabled. Authentication is required.
assigned_extension String The unique ID of the extension assigned to the IP phone. id Integer The unique ID of the IP phone. rps_pin String RPS PIN for Yealink phones, which can be entered on the phone device to complete the RPS provisioning process if required. onsite_proxy_uuid String The UUID of associated Onsite Proxy instance. function_key_line Integer The number of the SIP line. The function keys of extension assigned to the SIP line will be applied to the phone. phonebook_line Integer The number of the SIP line. The phonebook of extension assigned to the SIP line will be applied to the phone. extension_list Array<Extension_Info> The information of the extensions assigned to the SIP lines for the IP phone.
Examples
Request example
Query the auto provisioning information of an IP phone (ID: 4).
GET /openapi/v1.0/phone/get?access_token=wyzVFisp8XmFhiJTlpRmt2LxAuzELh5X&id=4 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
User-Agent: OpenAPI
Response example
HTTP/1.1 200 OK { "errcode": 0, "errmsg": "SUCCESS", "data": { "mac": "11:55:44:66:33:22", "vendor": "Yealink", "model": "SIP-CP960", "template_name": "YSDP_YealinkCP", "provisioning_method": "rps", "provisioning_link": "https://yeastardocs.example.yeastarcloud.com:443/api/autoprovision/6gEzigLFhMGntjd8", "enb_rps_auth": 1, "assigned_extension": "6", "id": 4, "rps_pin": "", "onsite_proxy_uuid": "", "function_key_line": 1, "phonebook_line": 1, "extension_list": [ { "sip_line": 1, "ext_id": 3071 }, { "sip_line": 2, "ext_id": 3075 }, { "sip_line": 3, "ext_id": 3078 } ] } }