Skip to content

Launch a profile ​

Launch a profile by ID, name, or remark and obtain its CDP debugging port.

Definition: POST · Checked on 2026-10-21.

Request ​

http
POST /api/launchBrowser

Use the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.

JSON body ​

FieldTypeRequiredDescription
idintegerNoUse a positive integer id; supply at least one of id, name, remark; unique id recommended
namestringNoMatches profile name; id takes priority; multiple name or remark matches fail
remarkstringNoMatches remark; without id, name and remark match either value; multiple matches fail
tempLaunchArgsstringNoTemporary arguments for this launch, not the persisted launchArgs configuration

cURL example ​

bash
curl --request POST 'http://127.0.0.1:9000/api/launchBrowser' \
  --header 'api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1
}'

Alternative request bodies ​

json
{
  "name": "1"
}
json
{
  "remark": "1"
}
json
{
  "id": 1,
  "tempLaunchArgs": "--blink-settings=imagesEnabled=false"
}

Response example ​

json
{
  "success": true,
  "data": {
    "debuggingPort": 9222,
    "webdriverPath": "EXAMPLE_LOCAL_CHROMEDRIVER_PATH"
  }
}

Current client response fields ​

FieldTypeUsage
successbooleanRequest processing succeeded; not a guarantee that every item was written
data.debuggingPortintegerCDP port for automation, distinct from the local API port
data.webdriverPathstring / omittedLocal driver path; may be omitted if already running and does not guarantee the file exists
messagestring / omittedOptional message, e.g. when the profile is already running
FieldTypeDescription
data.debuggingPortintegerCDP debugging port for Playwright/Puppeteer
data.webdriverPathstringLocal WebDriver path normally returned for a newly launched profile; it may be absent for an already-running profile or the file may not exist. Redact it before sharing.

Usage notes ​

  • Supply one of id, name, or remark. Prefer the unique id; duplicate names or remarks may prevent unambiguous selection.
  • The online reference does not define the success-response fields. The success example here comes from the current client: the CDP port is data.debuggingPort, not a top-level field or the local API service port.
  • tempLaunchArgs applies only to this launch. Connect automation to the returned CDP port; see Playwright integration.
  • Launching may wait for core authorization and CDP readiness. Allow at least 60 seconds in your HTTP client. After a timeout, check the running list before retrying the same profile.

For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.

Current launch behavior ​

If already running, the API may return success: true, a message and the existing data.debuggingPort rather than launching a new process. tempLaunchArgs is split on whitespace; do not assume full shell quoting. Cache-directory migration can return 409, and missing login or VIP entitlement can return 401 / 403. Do not log real proxy credentials, keys or sensitive launch arguments.

After failure or timeout, inspect running status and logs before retrying. The local API and CDP use separate ports.

If persistent or temporary launch arguments explicitly contain --remote-debugging-port, the client extracts that port, preferring the temporary argument. Do not assume a fixed port: use the returned data.debuggingPort.

When id and name or remark are supplied, a valid id takes precedence. Without ID, supplying both name and remark uses OR matching and returns 400 for multiple matches. Prefer a unique numeric ID.