Skip to content
Local APIBrowser profiles

Stop all browser profiles ​

Version overview
POST
/api/v1/browsers/stop/all

Take a snapshot of the browsers open in the profile management module when the request arrives, then validate and close each one for the current user and team. This endpoint does not operate on the RPA/RPA Plus runtime. Failures for some profiles do not affect others. The response structure matches that of the batch stop endpoint.

Request parameters

Authorization Bearer Token

Include your API Key as a Bearer token in the Authorization request header.

Authorization: Bearer <api-key>

Body parameters

application/jsonBrowserStopAllRequest
Fields
integer
Maximum concurrent stops; default: 5, maximum: 10
Default5
minimum: 1maximum: 10
Example

Generated from the schema; not a live response.

{
  "concurrency": 5
}

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 '{
  "concurrency": 5
}' 'http://local.zhongyibrowser.com:39025/api/v1/browsers/stop/all'

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 stop results for all browser profiles

Body

application/jsonBrowserBatchStopSuccessResponse
Fields
numberrequired
Business status code; always 0 on success
Enum
stringrequired
Business status message; always success on success
Enum
objectrequired
Endpoint business data

Additional fields are not allowed.

Example

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": {
          "status": "inactive"
        }
      }
    ]
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation