> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pre.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get service capacity

> Read advisory service queue statistics; use account queue status to size your own submissions.

```bash theme={null}
curl --fail-with-body https://api.pre.dev/browser-agent-capacity \
  -H "Authorization: Bearer $PREDEV_API_KEY"
```

This endpoint returns service-level queue and execution statistics. Fields include `totalActive`, `maxSandboxes`, `pending`, `claimed`, `running`, `failed`, `utilization` (percentage), and `oldestQueuedAgeMs`.

The response is an advisory operational snapshot, not an admission guarantee or a forecast. Additional diagnostic fields may be returned. **Use [`GET /browser-agent-status`](/browser-agents/api/queue-status) and its `cap` field for your account's current limit**; the service snapshot's `perUserCap` is a legacy field.

There is no dedicated method in the current SDKs or product MCP tools; call the endpoint with direct HTTP when needed.


## OpenAPI

````yaml api-reference/openapi.json GET /browser-agent-capacity
openapi: 3.1.0
info:
  title: pre.dev API
  description: >-
    Public REST API for software specifications, browser automation, proposal
    assessment, and credit balance. Base URL: https://api.pre.dev. MCP is
    documented separately at https://docs.pre.dev/mcp/tools.
  version: 1.1.0
  contact:
    name: pre.dev Support
    url: https://pre.dev
    email: support@pre.dev
  license:
    name: Proprietary
    url: https://pre.dev/terms
servers:
  - url: https://api.pre.dev
    description: Production API Server
security:
  - apiKeyAuth: []
  - xApiKey: []
tags:
  - name: Specifications
  - name: Browser Agents
  - name: Proposals
  - name: Account
paths:
  /browser-agent-capacity:
    get:
      tags:
        - Browser Agents
      summary: Get service capacity
      description: >-
        Advisory service diagnostics. Prefer /browser-agent-status for admission
        decisions.
      operationId: browserAgentCapacity
      responses:
        '200':
          description: Service capacity snapshot.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserCapacity'
        '401':
          description: Missing, invalid, or ineligible authentication.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Request failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BrowserCapacity:
      type: object
      properties:
        totalActive:
          type: integer
        maxSandboxes:
          type: integer
        perUserCap:
          type: integer
        pending:
          type: integer
        running:
          type: integer
        claimed:
          type: integer
        failed:
          type: integer
        oldestQueuedAgeMs:
          type: integer
        utilization:
          type: number
          description: Reported utilization percentage.
      description: >-
        Advisory service diagnostics. Fields may change; perUserCap is a legacy
        global value, not your account limit. Use GET /browser-agent-status for
        your cap.
      additionalProperties: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
          description: Optional detail; not returned by every endpoint.
        code:
          type: string
          description: Machine-readable code when available.
        actionUrl:
          type: string
          format: uri
        requiresSubscription:
          type: boolean
        trialsUsed:
          type: integer
        maxTrials:
          type: integer
      additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: Use a pre.dev API key from https://pre.dev/projects/key.
    xApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Alternative to Authorization: Bearer.'

````