API Reference
/- Browser
- Local API
- Connect cloud runtime
Start cloud runtime
Stop cloud runtime
Page cloud runtimes
Connect cloud runtime
Return the connection details for a running cloud runtime.
- Preconditions: the runtime must be exactly in the
RUNNINGstate and must have been started by you. A runtime that is stopping or archiving is rejected even though/cloudbrowser/pagestill reportsRUNNING. - Effect: mints a fresh desktop access token and records you as the connected member.
- Repeat calls: the returned
cdpUrlis stable and existing CDP sessions keep working, but each call issues a new desktop token and overwrites the recorded connected member. Earlier desktop URLs are not revoked, so treat every returned URL as a live credential: do not log or persist them. - Session limit: the runtime is stopped automatically once it reaches its maximum duration, and archiving starts shortly before that, so a long-lived automation run must handle the runtime disappearing.
- Use: attach Puppeteer, Playwright or Selenium to
cdpUrl.
Documented business errors: 40008, 40009, 40010. See Error Codes for what each code means. Any operation can additionally return the common codes.
- Local APIhttp://127.0.0.1:40000/api/cloudbrowser/connect
curl -i -X POST \
http://127.0.0.1:40000/api/cloudbrowser/connect \
-H 'Content-Type: application/json' \
-d '{
"envId": "1800000000000001"
}'Success
Operation request ID. This field may be present when the request passes through the API gateway.
Example:"1d4f3ea968664593860b94b35d4ebf5e"
Response
{ "code": 0, "msg": null, "data": { "cdpUrl": "https://runtime1.morelogin.com:16167?token=c62fedaaac524e41a0f02fc4345d41cb", "accessUrl": "https://official-website.morelogin.com/browser-remote?token=eyJkZXNrdG9wVXJsIjoi...ZW52SWQiOiIyMDczMzk1NDg5NzM4OTE5OTM2In0%3D&envName=P-1267&lang=en-US" }, "requestId": "1d4f3ea968664593860b94b35d4ebf5e" }