Cloud Phone Profiles
API Documentation
The concurrency limit for cloud phone APIs is different from browser windows. The limit for cloud phone API requests is: 1 request per second.
Many cloud phone APIs involve billing, especially for actions like powering on, suspending, and shutting down. Please make sure to understand the details thoroughly before performing these operations.
Operations related to cloud phone management, such as powering on, shutting down, performing a one-click fresh start, installing, and uninstalling apps, are asynchronous APIs. They do not immediately return the cloud phone’s status. After calling these APIs, you need to call the check power-on status API to verify if the cloud phone has powered on.
When using temporary computing power, billing starts immediately after the cloud phone is powered on and stops when the cloud phone is powered off. Please be sure to understand this.
Create Cloud Phone Profile
POST /phone/profile/add
Parameter Details
regionId
string
Yes
-
Compute type ID, click the "ADD" button in the client interface, select the type, then click the copy button on the right to copy the ID.
computeType
int
Yes
0
Compute type, options: 0, 1, 2; (0: Smart Allocation, 1: Temporary Compute Power, 2: Monthly Compute Power)
name
string
No
-
Profile name, maximum 30 characters
remark
string
No
-
Profile remark, maximum 500 characters 符
host
string
Yes
-
Proxy host, e.g., 1.2.3.44
port
int
Yes
-
Proxy port, e.g., 123
proxyUserName
string
Yes
-
Proxy username, maximum 200 characters
proxyPassword
string
Yes
-
Proxy password, maximum 200 characters
ipCheckService
string
Yes
ip123in
Proxy IP check service, options: ip123in, ip-api
udp
int
Yes
1
Proxy UDP protocol, options: 1, 0; If unable to connect to the network, you may try turning off UDP (not recommended to turn off)
cloudPhonesFingerPrint
object
Yes
{}
Fingerprint configuration object, defaults to no configuration unless there is a special requirement. If control is needed, refer to the JSON object below.
cloudPhonesFingerPrint object
Modify Cloud Phone Profile, RegionId (Compute Type) Cannot Be Modified
POST /phone/profile/update
Parameter Details
Except for the ID, only the fields that need to be modified should be passed. For example, if the name needs to be modified, only the ID and name fields need to be passed. The full request parameters are the same as those of the /phone/profile/add
endpoint.
Open Cloud Phone
Opening a cloud phone is an asynchronous API. If the cloud phone is in a powered-off state, it typically takes around 1 minute to power on. If the cloud phone is being resumed from a suspended state, it can take as little as 5 seconds to open. During this time, you can call the /phone/running API to check if the cloud phone has powered on.
POST /phone/openphone
Parameter Details
id
string
Yes
Cloud phone profile ID
Get Cloud Phone Profile List
POST /phone/list
Parameter Details
page
number
Yes
Page number, starting from 0
pageSize
number
Yes
Number of items per page, maximum 100. If a number greater than 100 is passed, only 100 items will be returned
groupId
string
No
Group ID ID
name
string
No
Profile name, fuzzy matching
seq
number
No
Sequence number, exact match
minSeq
number
No
Minimum sequence, query data greater than this sequence number
maxSeq
integer
No
Maximum sequence, query data less than this sequence number
host
string
No
Proxy Host, exact match
Suspend Cloud Phone
POST /phone/suspend
Closes the phone window and suspends the phone. The phone will continue running on the cloud and continue to be billed.
Parameter Details
id
string
Yes
Cloud phone profile ID
Shutdown Cloud Phone
POST /phone/shutdown
Closes the cloud phone window and shuts down the phone. The phone will no longer run on the cloud and billing will stop.
Parameter Details
id
string
Yes
Cloud phone profile ID
Get the cloud phone’s boot status
POST: /phone/running
Check if the cloud phone is powered on.
Parameter Details
id
string
Yes
Cloud phone profile ID
Enable/Disable Cloud Phone Root Access
POST /phone/root/switch
Switching root access is an asynchronous operation, and it is not possible to directly check if root has been successfully enabled or disabled. Users must use third-party tools to monitor the status. Root access can only be toggled when the cloud phone is in a powered-on state.
Parameter Details
id
string
Yes
Cloud phone profile ID
enable
boolean
Yes
true: Enable root access, false: Disable root access
Upload File
POST /phone/uploadFile
When uploading files, if multiple profiles are uploading the same file, it is best to pass the list of profile IDs that need the file upload in one request. The server will upload the local file once and then distribute it to the specified profiles.
The file upload must wait for the previous upload to finish before continuing.
Parameter Details
path
string
Yes
Absolute file path, e.g., "C:\Users\admin\xxx\aa.txt"
ids
array
Yes
Cloud phone profile ID array
Clear App Data
POST /phone/clearAppData
Clears the app’s cache data. The user login status will be cleared. Use with caution.
Parameter Details
id
string
Yes
profile ID
packageName
string
Yes
App package name
Recover Phone Profile
POST /phone/profile/recover
Resets the cloud phone profile parameters. Each profile can perform a maximum of 60 fresh starts per month. Once used up, the quota resets the next month. Use with caution.
Parameter Details
id
string
Yes
Cloud phone profile ID
Install App
POST /phone/installApp
Installs an app from the app store. Copy the corresponding version app ID from the app store and call this API to install the app.
Parameter Details
id
string
Yes
Cloud phone profile ID
appId
string
Yes
App ID from the app store
Uninstall App
POST /phone/unInstallApp
Uninstalls the specified app from the cloud phone.
Parameter Details
id
string
Yes
Cloud phone profile ID
packageName
string
Yes
App package name
Launch App
POST /phone/launchApp
Launch the specified app by package name.
Parameter Details
id
string
Yes
Cloud phone profile ID
packageName
string
Yes
App package name
Close App
POST /phone/closeApp
Closes the app, but the app will continue running in the background.
Parameter Details
packageName
string
Yes
App package name
id
string
Yes
Cloud phone profile ID
Restart Cloud Phone
POST /phone/restart
Restarts the cloud phone. During the restart, no cloud phone features can be used.
Parameter Details
id
string
Yes
Cloud phone profile ID
Get List of Installed Apps on Cloud Phone
POST /phone/getInstalledAppList
Gets the list of installed apps on the cloud phone. Only user-installed apps can be retrieved; system apps cannot be accessed.
Parameter Details
id
string
Yes
Cloud phone profile ID
Get Cloud Phone Group List
POST /phone/group/list
Parameter Details
page
number
Yes
Pagination, starting from 0
pageSize
number
Yes
Number of items per page, max 100, default is 10
all
boolean
No
By default, only retrieves the current user’s groups. To retrieve groups within the user’s permissions, pass true.
Add Group
POST /phone/group/add
Parameter Details
groupName
string
Yes
Group name
sortNum
number
Yes
Sorting order
Edit Group
POST /phone/group/edit
Parameter Details
id
string
Yes
Group ID
groupName
string
Yes
Group name
sortNum
number
Yes
Group sort order
Delete Group
POST /phone/group/delete
Parameter Details
id
string
Yes
Group ID
Batch Update Remarks
POST /phone/batchUpdate/remark
Batch update remarks. Supports replacement or append mode. By default, the mode is replacement. In append mode, the provided data will be appended to the existing remarks.
Parameter Details
phoneIds
array
Yes
List of Cloud phone profile IDs
remark
string
Yes
Remark text
remarkType
integer
Yes
Optional values: 1 (replace), 2 (append), default is 1
Batch Update Groups
POST /phone/batchUpdate/group
Batch update profiles to the same group.
Parameter Details
groupId
string
Yes
Group ID
phoneIds
array
Yes
List of Cloud phone profile IDs
Batch Update Proxies
POST /phone/batchUpdate
Batch update proxy settings for profiles to the same specified proxy information.
Parameter Details
phoneIds
array
Yes
Cloud phone profile ID
host
string
Yes
Proxy host
port
int
Yes
Proxy port
proxyUserName
string
Yes
Proxy username
proxyPassword
string
Yes
Proxy password
Last updated