> ## 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.

# List browser runs

> Browse your browser task history with filters and offset pagination.

```bash theme={null}
curl --fail-with-body 'https://api.pre.dev/list-browser-agents?limit=20&skip=0' \
  -H "Authorization: Bearer $PREDEV_API_KEY"
```

The response contains `batches`, `total`, and `hasMore`. Entries are sorted newest first. Increase `skip` by your page size while `hasMore` is true. `limit` defaults to 20 and is clamped to 1–100. Use a nonnegative `skip`.

The `status` filter accepts `processing` or `completed`; omit it to include all stored statuses, including failed runs.

## Summary rows

Rows include the run `id`, task count `total`, finished-task `completed` count, `status`, `totalCreditsUsed`, and available names and timestamps. Their `results` arrays can contain null slots. The first slot may be a partial task stub to identify the run before results arrive.

Fetch [run status](/browser-agents/api/task-status) for full task details and timelines. List summaries and detailed run snapshots have different behavior for the `completed` count; use `status` to decide whether a run is terminal.

Node: `client.listBrowserAgents({ limit: 20, skip: 0 })`. Python: `client.list_browser_agents(limit=20, skip=0)` returns a dictionary.


## OpenAPI

````yaml api-reference/openapi.json GET /list-browser-agents
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:
  /list-browser-agents:
    get:
      tags:
        - Browser Agents
      summary: List browser runs
      description: Newest first; use the detail endpoint for complete task results.
      operationId: listRuns
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
        - name: skip
          in: query
          required: false
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - processing
              - completed
              - failed
      responses:
        '200':
          description: Paginated run summaries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBatchesResponse'
        '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:
    ListBatchesResponse:
      type: object
      required:
        - batches
        - total
        - hasMore
      properties:
        batches:
          type: array
          items:
            $ref: '#/components/schemas/BatchSummary'
        total:
          type: integer
        hasMore:
          type: boolean
    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
    BatchSummary:
      type: object
      required:
        - id
        - status
      properties:
        id:
          type: string
          description: 24-character record ID.
          pattern: ^[a-fA-F0-9]{24}$
        name:
          anyOf:
            - type: string
            - type: 'null'
        taskNames:
          type: array
          items:
            type: string
        total:
          type: integer
        completed:
          type: integer
          description: Count of stored task results in this history response.
        results:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/TaskResult'
              - type: 'null'
          description: >-
            Compact preview, not a complete result set. Use GET
            /browser-agent/{id} for details.
        totalCreditsUsed:
          type: number
        status:
          type: string
          enum:
            - processing
            - completed
            - failed
        createdAt:
          type: string
          format: date-time
        completedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
      additionalProperties: true
    TaskResult:
      type: object
      properties:
        url:
          type: string
        name:
          type: string
        instruction:
          type: string
        input:
          type: object
          properties: {}
          additionalProperties: true
        output:
          type: object
          properties: {}
          additionalProperties: true
        status:
          type: string
          description: >-
            PENDING and RUNNING are status placeholders; all other listed values
            are terminal task outcomes.
          enum:
            - PENDING
            - RUNNING
            - SUCCESS
            - ERROR
            - TIMEOUT
            - BLOCKED
            - CAPTCHA_FAILED
            - LOOP
            - NO_TARGET
        data:
          description: >-
            Extracted result; shape follows the requested or inferred schema.
            May be null or omitted.
        creditsUsed:
          type: number
          description: >-
            Settled task charge: SUCCESS has a 0.1-credit floor; non-SUCCESS
            tasks have zero charge. Submission may reserve credits before
            settlement.
        durationMs:
          type: integer
          description: Wall-clock task duration in milliseconds.
        error:
          anyOf:
            - type: string
            - type: 'null'
        attempts:
          type: integer
        queuePosition:
          anyOf:
            - type: integer
              description: Queue estimate; 0 when running.
            - type: 'null'
        events:
          type: array
          items:
            $ref: '#/components/schemas/RunnerEvent'
          description: Available timeline when includeEvents=true.
      additionalProperties: true
    RunnerEvent:
      type: object
      required:
        - type
        - timestamp
      properties:
        type:
          type: string
          description: >-
            Extensible event type, for example navigation, screenshot, plan,
            action, validation, waiting, done, or error.
        timestamp:
          type: number
          description: Unix timestamp in milliseconds.
        iteration:
          type: integer
        data:
          description: >-
            Event-specific payload. Screenshot data is not guaranteed to be a
            URL.
      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.'

````