Query a Specific Cloud PBX by URL
Query the detailed information of a specific Cloud PBX using its URL.
Request URL
GET {base_url}/dm/open_api/v1/cloud_pbx/instances/get
Request parameters
Headers
Query
parameter| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Pass the access token in the header. Format: Bearer {access_token}. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| url | Yes | String | The URL of the Cloud PBX. Note: You can
query the Cloud PBX URL using Query All the Cloud PBXs. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| data | Object <Details> | The detailed information of the Cloud PBX. |
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| status | String | Request result:
|
| time | Long | The response time. Note: The YCM API response returns a
timestamp, you can convert the timestamp to detailed
date and time as needed. For more information, see Convert Timestamp to Local Date and Time.
|
Details
| Parameter | Type | Description |
|---|---|---|
| cloudPbxId | Long | The ID of the Cloud PBX. |
| pbxStatus | String | The running status of the Cloud PBX.
|
| activationStatus | String | The activation status of the Cloud PBX.
|
| name | String | The name of the Cloud PBX. |
| sn | String | The Serial Number (SN) of the Cloud PBX. |
| plan | String | The subscribed plan of the Cloud PBX.
|
| planExpirationDate | Long | The expiration time of the PBX subscribed plan. |
| extensionCapacity | Long | The extension capacity of Cloud PBX. |
| concurrentCallCapacity | Long | The concurrent call capacity of Cloud PBX. |
| recordingStatus | String | Whether the call recording feature of Cloud PBX is
enabled or not.
|
| recordingCapacity | Long | The call recording capacity of the Cloud PBX. |
| transcriptionCapacity | Long | The total number of AI transcription minutes of the Cloud PBX. |
| transcriptionCapacityPlan | Long | The number of AI transcription minutes included in
the Cloud PBX plan. Note: The
Enterprise Plan includes 120 minutes, while
the Ultimate Plan includes 240
minutes. |
| transcriptionCapacityAddon | Long | The extra number of minutes purchased for the PBX, in addition to those included in the PBX plans. |
| usedTranscription | Long | The number of AI transcription minutes used. |
| region | String | The region where the Cloud PBX is launched. |
| url | String | The URL of the Cloud PBX. |
| type | String | The PBX type.
|
| expirationDate | Long | The expiration time of Cloud PBX. |
| allowRunAfterExpirationDate | Boolean | Whether the Cloud PBX remains operational after its
expiration time.
|
| version | String | The firmware version of Cloud PBX. |
| group | String | The group to which the Cloud PBX belongs. |
| creator | Object <Creator_Info> | The information of the Cloud PBX creator. |
| createTime | Long | The create time of Cloud PBX. |
| initialStartUpTime | Long | When the Cloud PBX was first started. |
| upgradeInPbx | String | Whether firmware upgrading on PBX side is enabled or
not.
|
| im | String | Whether the internal chat feature (IM) of the PBX is
enabled or not.
|
| pbxApi | String | Whether API feature of the Cloud PBX is enabled or not.
|
| passwordlessLogin | String | Whether passwordless login to PBX is enabled or
not.
|
| allowSuperiorPasswordlessLogin | String | Whether passwordless login to PBX for your superior account
is enabled or not.
|
| provisioningViaTemplate | String | Whether the PBX is allowed to be provisioned via a
template.
|
| lastUsedTemplate | String | The last used provisioning template. |
| lastUsedTime | Long | The last time the template was used to provision the PBX. |
| autoActivated | Boolean | Whether the PBX was automatically activated and
provisioned via API.
|
| activeCalls | String | The number of the current active calls on the PBX. |
| usedExtensions | String | The number of created extensions on the PBX. |
| usedRecording | String | The used recording capacity on the PBX (Unit: Minute). |
| lastBackupTime | Long | The last time the PBX was backed up via task from Yeastar Central Management. |
| recordingExpireDate | Long | The expiration time of additional recording minutes allocated to the PBX (i.e., minutes beyond the free 500-minutes). |
| trunkConfigurationAccess | String | Whether the PBX users are allowed to add or import
trunks on the PBX.
|
| cloudPbxPeakInfoDTO | Object<Peak_Info> | The resource historical utilization over the last 2 months. |
- Creator_Info
-
Parameter Type Description firstName String First name. lastName String Last name. email String Email address. - Peak_Info
-
Parameter Type Description mobilePeak String The monthly peak number of registered Linkus Mobile Clients. pcPeak String The monthly peak number of registered Linkus Desktop Clients. padPeak String The monthly peak number of registered Linkus Pad Clients. sipPeak String The monthly peak number of registered SIP endpoints. webPeak String The monthly peak number of registered Linkus Web Clients. activeCallsPeak String The monthly peak number of concurrent calls on the PBX. monthlyRecording String The monthly sum of used recording minutes.
Example
Request example
Query the information of a Cloud PBX using its URL.GET /dm/open_api/v1/cloud_pbx/instances/get?url=cloud2.example.yeastarcloud.com HTTP/1.1 Host: ycm.yeastar.com Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21Kd3RQYXlsb2FkSW5mbyI6eyJncmFudFR5cGUiOiJjbGllbnRfY3JlZGVudGlhbHMiLCJ5c0lkIjoxNzg5NjM2MDM5MDg1MDI1NjY0NSwidmVyc2lvbiI6MTY2Mzc0MTEyNSwicmVmcmVzaFZlcnNpb24iOjE2NjQ0Mzk2OTF9LCJzY29wZSI6WyJhbGwiXSwiZXhwIjoxNjY0NDQxNDkxLCJhdXRob3JpdGllcyI6WyJST0xFX0NMSUVOVCJdLCJqdGkiOiI4OTVmM2I4ZC1iYjE5LTQ5Y2ItODE5NC01ZmUxYTNiMTgyNzAiLCJjbGllbnRfaWQiOiJ5QXN4ZzdITkRFczNxSHprQk1aUU5Pblo2NTBPRUNNWSJ9.nlO7AEithe4a-nAfPSAJv74wnJ0x-oH4jVChniV1LmkResponse example
HTTP/1.1 200 OK { "data": { "cloudPbxId": 7738, "pbxStatus": "Running", "activationStatus": "Activated", "name": "Yeastar P-Series Cloud PBX2", "sn": "3658B431119XXXXX", "plan": "Ultimate Plan", "planExpirationDate": 1638427632, "extensionCapacity": 15, "concurrentCallCapacity": 15, "recordingStatus": "Enabled", "recordingCapacity": 500, "transcriptionCapacity":240, "transcriptionCapacityPlan":240, "transcriptionCapacityAddon":0, "usedTranscription":0, "region": "China(GuangDong)", "url": "cloud2.example.yeastarcloud.com", "type": "Commercial", "expirationDate": 1638427632, "allowRunAfterExpirationDate": false, "version": "84.21.0.66", "creator": { "firstName": "Jane", "lastName": "Smith", "email": "jane@example.com" }, "createTime": 1635749236, "initialStartUpTime": 1635749236, "upgradeInPbx": "Enabled", "im": "Enabled", "pbxApi": "Disabled", "passwordlessLogin": "Disabled", "provisioningViaTemplate": "Enabled", "allowSuperiorPasswordlessLogin": "Disabled", "lastUsedTemplate": "PCE-Provision-Template", "lastUsedTime": 1680138886, "autoActivated": false, "activeCalls": "10", "usedExtensions": "10", "usedRecording": "150", "lastBackupTime": 1729786748, "recordingExpireDate": 1787031505, "trunkConfigurationAccess": "Enabled", "cloudPbxPeakInfoDTO": { "mobilePeak": "5/-", "pcPeak": "6/-", "padPeak": "3/-", "sipPeak": "3/-", "webPeak": "6/-", "activeCallsPeak": "16/12", "monthlyRecording": "0/-" } }, "requestId": "814bc5a4d2f281cd70a77534b4ccf48f", "status": "Success", "time": 1664440292 }