API 参考
/- 浏览器
- 开放 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. Attach an automation framework such as Puppeteer, Playwright, or Selenium to the returned cdpUrl.
The runtime must be in the RUNNING state. Calling this again issues a new desktop token, which can invalidate an earlier viewer session. Treat both returned URLs as short-lived credentials and do not log or persist them.
Security
OpenApiBearer
POST
curl -i -X POST \
https://api.morelogin.com/cloudbrowser/connect \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-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" }