1. Getting a list of cloud phone profiles
Basic Information
POST /api/cloudphone/page
Description: Queries information about existed cloud phone profiles. Users can only query the cloud phone profile that they have permission. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-mandatory parameters can not be passed, the format of the parameter is JSON.
Parameter Name | Type | Required | Description |
bindIp | boolean |
NO | According to whether the cloud phone has been bound to the proxy query true: bound; false: unbound |
keyword | string | NO | Keywords. Can be queried by proxy information, group name, label name, profile name |
pageNo | integer(int64) | NO | Current page. Default 1 |
pageSize | integer(int64) | NO | Number of entries per page. Default 10 |
sort | array | NO | Dynamic sorting of fields. Currently the cloud phone supports: cloud phone profile name-envName, creation time-createDate field sorting |
sort
Parameter Name | Type | Required | Description |
sortDirection | string | NO | Sorting direction. asc: ascending; desc: descending |
sortFiled | string | NO | Sort Fields Cloud phone profile name: envName Creation time: createDate |
Example of a request
{
"bindIp": true,
"keyword": "",
"pageNo": 1,
"pageSize": 10,
"sort": [
{
"sortDirection": "",
"sortFiled": ""
}
]
}
Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // error message
"data": {
"current": 0,
"dataList": [
{
"abnormalStatus": 0, // Abnormal status: 0-No abnormality 1-Unactivated 2-Out-of-contract 3-Oversold 4-Deactivated
"adbInfo": { // adb information
"adbIp": "", // adb ip
"adbPassword": "", // adb connection password
"adbPort": "", // adb port
"remark": "", // Failure Remarks Information
"success": 0 // Successful acquisition 1=Yes 0=No
},
"billingType": 0, // Billing: 0-Free 1-Flexible subscription 2-Monthly
"createDate": "", // Creation time
"createMember": 0, // Create User
"createMemberName": "", // Create User
"enableAdb": true, // Whether to enable adb
"envName": "", // Cloud Phone Name
"envRemark": "", // Profile Remarks
"envStatus": 0, // Profile Status: 0-New 1-Creation Failed 2-Stop 3-Starting up 4-Start 5-Reset In Progress
"expireTime": 0, // expiration time
"groupId": 0, // Group Id
"groupInfo": [ // Group Information
{
"id": 0, // Tag marking
"tagIcon": "", // Tag icon
"tagName": "", // Tag name
"tagSource": "", // Tag Source: ENV profile, PROXY proxy
"tagType": "" // Tag type: TAG tag, GROUP group
}
],
"id": 0, // Cloud phone Id
"lastConnectDate": "", // Last connection time
"lastConnectMemberId": 0, //Last Connector ID
"lastConnectMemberName": "", // Last Connector Name
"lastStartDate": "", // Last start time
"lastStartMemberId": 0, // Last start member ID
"lastStartMemberName": "", // Last start member name
"proxy": { // proxy information
"country": "", // country
"countryCode": "", // countryCode
"createDate": "", // createDate
"delFlag": 0, // 1 - deleted 2 - not deleted
"expiryTime": 0, // Expiration time
"exportIp": "", // Export IP
"groupId": 0, // Group ID
"id": 0, // Primary key
"providerCode": "", // Provider area
"proxyAreaCode": "", // Proxy area
"proxyCatagoryType": 0, // Proxy type: 0-site group 1-cloud platform 2-own IP 3-vps 4-virtual machine
"proxyCheckStatus": 0, // Detection status: 0 - pending detection 1 - successful detection 2 - detection failure 3 - unknown error
"proxyInfo": "", // Proxy Information
"proxyIp": "", // Proxy IP
"proxyName": "", // Proxy name
"proxyPort": 0, // Proxy port
"proxyRegionCode": "", // Platform proxy country
"proxyStatus": 0, // 0-Normal 1-Pending allocation 2-Upgrading 3-Expired
"proxySub": { // Proxy subscription
"activeRecordId": 0, // Subscription records in activation
"businessId": "", // Proxy ID
"createMember": 0, // Create a member
"endTime": 0, // End time
"id": 0, // Subscription ID
"nextBillingTime": 0, // Next deduction time
"startTime": 0, // Validity period
"subPayMethod": "", // subPayMethod
"subStatus": 0, // Subscription Status: 0-Pending 1-Subscribed 2-Cancelled
"subType": 0, // Subscription Type: 1-Agent 2-Package
"teamId": 0 // Team ID
},
"proxyType": 0, // Proxy type:0-http 1-https 2-socks5 4-Oxylabs 5-Proxys.io 6-GeoSurf 9-Oxylabsauto 10-Trogan 11-Shadowsocks 12-vmess
"proxyTypeCode": "", // Platform Proxy Type Code
"regionKey": "", // Cloud Platform Key
"releaseTime": "", // Release time: deletion time if deleted, expiration time if expired
"uniqueId": 0 // Sort ID
},
"proxyStatus": 0, // Proxy Status: 0-Not Detected 1-Detecting 2-Detecting Failed 3-Detecting Successful
"supportAdb": true, // Whether adb is supported
"tagIds": [], // Tag IDs
"tagInfo": [ // Tag information
{
"id": 0, // Primary key
"tagIcon": "",
"tagName": "",
"tagSource": "",
"tagType": ""
}
],
"updateDate": "", // Modify Time
"updateMember": 0 // Modify User
}
],
"pages": 0,
"total": 0
},
"requestId": "", // Operation Request ID
}2. Creating a Cloud Phone Profile
Basic information
POST api/cloudphone/create
Interface description: Create a new cloud phone profile, support batch creation. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
quantity | integer(int32) | YES | Number of cloud phone created Range of values: [1-10] |
skuId | number | YES | Cloud Phone model 10002 Android 12 10004 Android 15 10005 Android 14 10013 Android 13 Refer to the appendix for a detailed description of the model's parameters |
altitude | number | NO | Altitude Example: 100 |
automaticGeo | boolean | NO | Whether to automatically match the geographic location true: yes; false: no Default: true |
automaticLanguage | boolean | NO | Whether to automatically match the language true: yes; false: no Default: true |
automaticLocation | boolean | NO | Whether to auto-match location (time zone, country) true: yes; false: no Default: true |
country | string | NO | Country, e.g. us Check appendix for country code details |
envRemark | string | NO | Profile Remarks Length limit 1500 characters |
groupId | string | NO | Specify the group of cloud phone profiles (This field is required if you do not have the "All profiles" permission in grouped authorization mode.) |
language | string | NO | Language, e.g. en-US Check appendix for details of specific languages |
latitude | number | NO | Latitude. Example: 22.309182 |
longitude | number | NO | Longitude. Example: 114.176817 |
proxyId | integer(int64) | NO | Proxy ID Default 0, limit minimum 0 |
timezone | string | NO | Time zone, e.g. America/New_York Check attachment for specific time zones |
Example of a request
{
"altitude": 0,
"automaticGeo": true,
"automaticLanguage": true,
"automaticLocation": true,
"country": "",
"envRemark": "",
"groupId": "",
"language": "",
"latitude": 0,
"longitude": 0,
"proxyId": 0,
"quantity": 0,
"skuId": 10002,
"timezone": ""
}Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"data": [] // Cloud Phone ID
"requestId": "", // Operation Request ID
}
3. Start up Cloud Phone
Basic information
POST /api/cloudphone/powerOn
nterface description: Start the cloud phone profile. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
id | integer(int64) | YES | ID of the cloud phone to be started up |
Example of a request
{
"id": 0
}Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"requestId": "", // Operation Request ID
}
4. Shut down the cloud phone
Basic information
POST /api/cloudphone/powerOff
Interface description: Stops the cloud phone profile. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
arameter name | Type | Required | Description |
id | integer(int64) | YES | ID of Cloud Phone which need to be shut down |
Example of a request
{
"id": 0
}Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"requestId": "", // Operation Request ID
}
5. Modify the cloud phone profile
Basic Information
POST /api/cloudphone/edit/batch
Interface description: Modify the cloud phone profile information, can batch modify the cloud phone binding proxy and other information. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
id | array | YES | Cloud phone ID Example:[1558968155668507,1558968635916317] |
altitude | number | NO | Altitude Example: 100 |
automaticGeo | boolean | NO | Whether to automatically match the geographic location true: yes; false: no Default: true |
automaticLanguage | boolean | NO | Whether to automatically match the language true: yes; false: no Default: true |
automaticLocation | boolean | NO | Whether to auto-match location (time zone, country) true: yes; false: no Default: true |
country | string | NO | Country, e.g. us Check appendix for country code details |
envRemark | string | NO | Profile Remarks Length limit 1500 characters |
groupId | string | NO | Specify the group of cloud phone profiles (This field is required if you do not have the "All profiles" permission in grouped authorization mode.) |
language | string | NO | Language, e.g. en-US Check appendix for details of specific languages |
latitude | number | NO | Latitude. Example: 22.309182 |
longitude | number | NO | Longitude. Example: 114.176817 |
proxyId | integer(int64) | NO | Proxy ID Default 0, limit minimum 0 |
timezone | string | NO | Time zone, e.g. America/New_York Check attachment for specific time zones |
Example of a request
{
"altitude": 0,
"automaticGeo": true,
"automaticLanguage": true,
"automaticLocation": true,
"country": "",
"id": [],
"language": "",
"latitude": 0,
"longitude": 0,
"proxyId": 0,
"timezone": ""
}
Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"requestId": "", // Operation Request ID
}
6. Delete Cloud Phone Profile
Basic information
POST /api/cloudphone/delete/batch
Interface description: batch delete cloud phone profiles. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
ids | array | YES | Cloud phone ID to be deleted |
Example of a request
{
"ids": []
}Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"data": {} // The operation returns data
"requestId": "", // Operation Request ID
}
7. Update Cloud Phone ADB Status
Basic information
POST /api/cloudphone/updateAdb
Interface description: Batch enable/disable the ADB status of the cloud phone profile. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
enableAdb | boolean | YES | Whether to enable adb true: on; false: off |
ids | array | YES | Need to enable/disable cloud phone ID for ADB Example:[1571806316503059] |
Example of a request
{
"enableAdb": true,
"ids": []
}Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"requestId": "", // Operation Request ID
}
8 One-click new cloud phone
Basic information
POST /api/cloudphone/newMachine
Interface Description: Performs one-click new phone operation for cloud phones. The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
brand | string | YES | Brand |
id | integer(int64) | YES | Cloud phone ID |
modelId | integer(int32) | YES | modelId |
Request Parameters
{
"brand": "",
"id": 0,
"modelId": 0
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"error": { //Response Information
"info": [
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" //Error subject
}
],
"type": "" //Error code,SERVER:SERVER Error,NEP:NEP error,DB:DB Error,CLIENT:Client Error
},
"ignorePrintStack": true, //Response message: An error message will be returned when code is greater than 8.
"msg": "",
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}
9. Uploading files
Basic information
POST /api/cloudphone/uploadFile
Content-Type:multipart/form-data
Interface description: Upload files to cloud phone.The MoreLogin application needs to be updated to version 2.9.0 and above.
Request Parameters
Body parameter, non-required parameters can be left out, the format of the parameter is JSON.
Parameter name | Type | Required | Description |
file | File | YES | Uploaded files |
id | integer(int64) | YES | Cloud Phone ID |
uploadDest | string | YES | Uploaded directories |
Return Data
{
"code": 0, // Return result code 0:Normal Other codes are exceptions.
"msg": "", // Error message
"requestId": "", // Operation Request ID
}10. Execute Shell Command
Basic Information
POST /api/cloudphone/exeCommand
Content-Type:application/json
Interface Description: Execute a shell command on the cloud phone.
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | Cloud Phone ID |
command | string | YES | The command to execute. If multiple lines are needed, separate them with |
Example of a request
{
"command": "",
"id": 0
}
Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": "", //Response Information
"error": {
"info": [ //Response Information
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" //Error subject
}
],
"type": "" //Error code,SERVER:SERVER Error,NEP:NEP error,DB:DB Error,CLIENT:Client Error
},
"ignorePrintStack": true,
"msg": "", //esponse message: An error message will be returned when code is greater than 0.
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}Return data11. Retrieve the List of Installed Apps
Basic information
Get /api/cloudphone/app/page
Interface Description: Paginated Query of APP Applications
Request Parameters
Parameter name | Type | Required | Description |
appName | string | NO | AppName (supports fuzzy search) |
pageNum | integer(int64) | NO | Page Number |
pageSize | integer(int64) | NO | pageSize |
Example of a request
{
"appName": "",
"pageNum": 0,
"pageSize": 0
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": { //Response data
"current": 0,
"dataList": [
{
"appIcon": "", //APPicon
"appName": "", //APPname
"appVersionList": [ //APPversion
{
"id": "", //APP version ID
"installStatus": 0, //App install status: 0-installing, 1-installed successfully, 2-installation failed, others-not installed
"packageName": "", //Package name
"versionCode": "", //APPAPP version code
"versionName": "" //APP version name
}
],
"categoryValue": 0, //Category ID
"id": "", //APPid
"packageName": "", //Package name
"sortNo": 0 //Sort order number
}
],
"pages": 0,
"total": 0
},
"error": {
"info": [ //Error details, not returned in production
{
"code": "", //Error type
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" //Error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //Response message,Error message returned if code > 0.
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}
12. Retrieve the List of Installed Applications
Basic Information
Post /api/cloudphone/app/installedList
Interface Description:Query for Installed Applications List
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | CloudphoneID |
Response Status
Status Code | Description | schema |
200 | OK | ResponseData«List«CloudPhoneInstalledAppRes»» |
201 | Created |
|
401 | Unauthorized |
|
403 | Forbidden |
|
404 | Not Found |
|
Example of a request
{
"id": 0
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": [ //Response data
{
"appIcon": "", //appIcon
"appName": "", //appName
"packageName": "", //packageName
"versionCode": 0, //App version code
"versionName": "" //App version name
}
],
"error": {
"info": [
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" // Error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //Response message,Error message returned if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}13. Install a Specified APP
Basic information
Post /api/cloudphone/app/install
Interface description: Install a Specified APP
Request Parameters
Parameter name | Type | Required | Description |
appVersionId | string | NO | App Version ID |
id | integer(int64) | YES | Cloud phoneID |
packageName | string | YES | Package name |
versionCode | integer(int64) | NO | App Version Code |
Example of a request
{
"appVersionId": "",
"id": 0,
"packageName": "",
"versionCode": 0
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": true, //Response data
"error": {
"info": [
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" // Error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //Response msg,Error message returned if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}
14. Query Device Brands and Models
Basic information
Post /api/cloudphone/brand/models
Interface description: Query Device Brands and Models
Request Parameters
Parameter name | Type | Required | Description |
skuId | integer(int64) | YES | skuId |
Example of a request
{
"skuId": 0
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": [ //Response data
{
"brand": "", //Brand
"brandAlias": "", //Brand alias
"id": 0, //Model ID
"model": "" //Model
}
],
"error": {
"info": [ //Error info
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" //Error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "",//Response msg, returned when code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}15. Start APP
Basic information
Post /api/cloudphone/app/start
Interface description: Start App on Cloud Phone
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | Cloud phone ID |
packageName | string | YES | package Name |
Example of a request
{
"id": 0,
"packageName": ""
}Return Data
{
"code": 0, //Response code,0 indicates success, >0 indicates failure
"data": true, //Response data
"error": {
"info": [ //Error info
{
"code": "", //Error code
"msg": "", //Error msg
"nested": {}, //Error nested
"subject": "" //Error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:客户client error
},
"ignorePrintStack": true,
"msg": "", //Response msg,Error message returned if code > 0.
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}
16. Restart APP
Basic information
Post /api/cloudphone/app/restart
Interface description: Restart App on Cloud Phone
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | cloud phone ID |
packageName | string | YES | package name |
Example of a request
{
"id": 0,
"packageName": ""
}Return Data
{
"code": 0, //Response code,0 indicates success, >0 indicates failure
"data": true, //Response data
"error": {
"info": [ //error info
{
"code": "", //error code
"msg": "", //error msg
"nested": {}, //error nested
"subject": "" //error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //Response msg,Error message returned if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}17. Stop APP
Basic information
Post /api/cloudphone/app/stop
Interface description: Terminate App Process on the Cloud Phone
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | cloudphone ID |
packageName | string | YES | package name |
Example of a request
{
"id": 0,
"packageName": ""
}Return Data
{
"code": 0, //Response code,0 indicates success, >0 indicates failure
"data": true, //Response data → Response data
"data": true, //Response data
"error": {
"info": [ //error info
{
"code": "", //error code
"msg": "", //error msg
"nested": {}, //error nested
"subject": "" //error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //Response msg,Error message returned if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}18. Uninstall APP
Basic information
Post /api/cloudphone/app/uninstall
Interface description: Uninstall Cloud Phone App
Request Parameters
Parameter name | Type | Required | Description |
id | integer(int64) | YES | cloud phoneID |
packageName | string | YES | package |
Example of a request
{
"id": 0,
"packageName": ""
}Return Data
{
"code": 0, //Response code: 0 indicates success, >0 indicates failure
"data": true, //Response data
"error": {
"info": [ //error info
{
"code": "", //error code
"msg": "", //error msg
"nested": {}, //error nested
"subject": "" //error subject
}
],
"type": "" // Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", // Response msg,Return an error message if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}
19. Set keyBox
Basic information
Post /api/cloudphone/setKeyBox
Request Parameters
Parameter name | Type | Required | Description |
filePath | string | YES | filePath:/sdcard/Download/xxx.xml |
id | integer(int64) | YES | cloud phone ID |
Example of a request
{
"filePath": "",
"id": 0
}Return Data
{
"code": 0, //Response code, 0 indicates success, >0 indicates failure
"error": {
"info": [ //error info
{
"code": "", //error code
"msg": "", //error msg
"nested": {}, //error nested
"subject": "" //error subject
}
],
"type": "" //Error type,SERVER:server error,NEP:NEP error,DB:database error,CLIENT:client error
},
"ignorePrintStack": true,
"msg": "", //response msg,Return an error message if code > 0
"stackTrace": "",
"status": "",
"success": true,
"time": ""
}Need more help? Contact us:
