Start browser profiles in a batch
Deduplicate profiles while preserving the order of first occurrence, then start them with bounded concurrency. Each item can set headless independently; if omitted, its profile command_line setting is used. Each profile returns its own success or error result. Business errors do not roll back profiles that have already started successfully.
Request parameters
Authorization Bearer Token
Include your API Key as a Bearer token in the Authorization request header.
Authorization: Bearer <api-key>Body parameters
requiredapplication/jsonBrowserBatchStartRequestobject[]requiredProfiles to start. For duplicate env_id values, only the first configuration is retained. Maximum: 10 profiles per batch.minItems: 1maxItems: 10
minItems: 1maxItems: 105minimum: 1maximum: 10Generated from the schema; not a live response.
{
"items": [
{
"env_id": "env_01JABCDEF1234567890"
}
]
}Request code examples
JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.
curl -X POST -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
"items": [
{
"env_id": "env_01JABCDEF1234567890"
}
]
}' 'http://local.zhongyibrowser.com:39025/api/v1/browsers/start/batch'Responses
Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.
A completed batch can return HTTP 200 and code = 0 even when individual items fail. Check data.items[].success and data.items[].error for each result.
Individual batch start results
Body
application/jsonBrowserBatchStartSuccessResponseobjectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"total": 0,
"success_count": 0,
"failed_count": 0,
"items": [
{
"env_id": "env_01JABCDEF1234567890",
"success": true,
"data": {
"group": {
"id": "string",
"name": "string"
},
"status": "active",
"headless": true,
"ws_endpoint": "string",
"reused": true
}
}
]
}
}