Skip to content

Local API (1.0.0)

The MoreLogin API offers a comprehensive and developer-friendly RESTful interface that empowers you to programmatically manage browser profiles, cloud phones, and related resources—enabling seamless automation, scalability, and control.The MoreLogin local API runs on your machine and is accessible at:127.0.0.1:40000

Download OpenAPI description
Languages
Servers
Mock server
https://guide.morelogin.com/_mock/api-reference/local-api/local-api
Morelogin Local endponint
http://127.0.0.1:40000
Operations

Get the browser profile running status

Request

Bodyapplication/json
envIdstringrequired

Browser environment ID

curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/status \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1957985601221750784"
  }'

Responses

Bodyapplication/json
codestringrequired
msgstringrequired
dataobjectrequired
data.​envIdstringrequired

env Id

data.​statusstringrequired
data.​localStatusstringrequired
data.​debugPortstringrequired
data.​webdriverstringrequired
Response
application/json
{ "code": "string", "msg": "string", "data": { "envId": "string", "status": "string", "localStatus": "string", "debugPort": "string", "webdriver": "string" } }

Request

Used to retrieve information of all monitors. No request parameters required.

Bodyapplication/json
object
curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/getAllScreen \
  -H 'Content-Type: application/json'

Responses

Bodyapplication/json
codeinteger
msgnull
dataArray of objects
Response
application/json
{ "code": 0, "msg": null, "data": [ { … } ] }

One-click adaptive window arrangement

Request

Used to arrange opened profiles with one click. Requires at least one profile to be open.

Bodyapplication/jsonrequired
arrangeTypeinteger

Arrangement type: 1 for Tiled, 2 for Stacked, defaults to Tiled if not specified

envIdsArray of strings

Environment IDs, if not specified, all environment windows are selected by default

screenIdsArray of integers

Screen IDs, array type, if not specified, arrange on the screen where the mouse cursor is located

curl -i -X POST \
  https://guide.morelogin.com/_mock/api-reference/local-api/local-api/api/env/arrangeWindows \
  -H 'Content-Type: application/json'

Responses

Bodyapplication/json
arrangeTypeinteger
envIdsArray of strings

Environment ID

screenIdsArray of integers

Sequence ID

Response
application/json
{ "arrangeType": 2, "envIds": [ "2014664375044337664" ], "screenIds": [ 2528732444 ] }
Operations
Operations
Operations
Operations
Operations
Operations
Operations