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

# Get lightweight browser status



## OpenAPI

````yaml /openapi/webcompute.json get /v1/browsers/{id}/status
openapi: 3.0.0
info:
  title: Webcompute API
  description: >-
    Public Webcompute REST API for managed browsers, browser-control execution,
    resources, quick actions, and health checks.
  version: 0.1.0
servers:
  - url: https://api.webcompute.dev
    description: Webcompute production API
security:
  - bearer: []
tags:
  - name: Health
    description: Public liveness and readiness checks.
  - name: Browsers
    description: >-
      Managed browser lifecycle, browser control, status, blockers, and
      resources.
  - name: Quick Actions
    description: Ephemeral browser actions for scrape, screenshot, and PDF generation.
paths:
  /v1/browsers/{id}/status:
    get:
      tags:
        - Browsers
      summary: Get lightweight browser status
      operationId: BrowserController_getStatus
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Browser status snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserStatusResponseDto'
        '404':
          description: Browser not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      security:
        - bearer: []
components:
  schemas:
    BrowserStatusResponseDto:
      type: object
      properties:
        browserId:
          type: string
          description: Browser ID (browser_*).
        activeTab:
          description: Active tab summary. Null when the browser has no open tabs.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/BrowserStatusActiveTabDto'
        tabs:
          description: All open tabs, mirrored from browser-server.
          type: array
          items:
            $ref: '#/components/schemas/BrowserStatusTabDto'
        cookieCount:
          type: number
          description: Total cookies Chrome is tracking for the browser.
        cookieDomains:
          description: >-
            Deduped eTLD+1 domains owning cookies (capped at 32). Values are
            never returned.
          type: array
          items:
            type: string
        lastActionAt:
          type: string
          description: ISO-8601 timestamp of the most recent recorded runtime action.
      required:
        - browserId
        - activeTab
        - tabs
        - cookieCount
        - cookieDomains
        - lastActionAt
    ErrorResponseDto:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorBodyDto'
      required:
        - error
    BrowserStatusActiveTabDto:
      type: object
      properties:
        tabId:
          type: string
          description: Runtime tab identifier.
        url:
          type: string
          description: Current URL of the active tab.
        title:
          type: string
          description: Current document title of the active tab.
      required:
        - tabId
        - url
        - title
    BrowserStatusTabDto:
      type: object
      properties:
        tabId:
          type: string
          description: Runtime tab identifier.
        url:
          type: string
          description: Current URL of the tab.
        title:
          type: string
          description: Current document title of the tab.
      required:
        - tabId
        - url
        - title
    ErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: SELECTOR_NOT_FOUND
        message:
          type: string
          description: Human-readable error description.
        details:
          type: object
          description: Structured context for debugging. `null` when not provided.
          additionalProperties: true
          nullable: true
        category:
          type: string
          description: >-
            Semantic category for the error. Consumers should prefer this over
            pattern-matching `code`.
          enum:
            - cors
            - navigation-timeout
            - readiness-timeout
            - selector-missing
            - target-detached
            - dialog-blocking
            - network
            - auth
            - quota
            - rate-limited
            - browser-crashed
            - invalid-request
            - unknown
        nextStep:
          type: string
          description: >-
            Recommended recovery hint paired with `category`. Use this instead
            of pattern-matching the `code`.
          enum:
            - wait
            - state
            - switch_tab
            - retry
            - fail
            - navigate-to-origin
            - refresh-state
            - dismiss-dialog
            - scrape-may-still-succeed
            - abort
      required:
        - code
        - message
        - details
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http

````