> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-larsen-v1-unified-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Browsercode Session Queue

> List a session's pending queued turns (read-only). You send by
POST /runs {sessionId}; cancel with DELETE .../queue/{messageId}. MOCKED.



## OpenAPI

````yaml /cloud/openapi/v1.json get /agents/browsercode/sessions/{session_id}/queue
openapi: 3.1.0
info:
  title: Browser Use API v1
  summary: Unified /api/v1 preview spec, non-production only
  version: 1.0.0
servers:
  - url: https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1
    description: Browser Use API v1 (staging)
security: []
paths:
  /agents/browsercode/sessions/{session_id}/queue:
    get:
      tags:
        - 'Agent: browsercode'
      summary: Get Browsercode Session Queue
      description: >-
        List a session's pending queued turns (read-only). You send by

        POST /runs {sessionId}; cancel with DELETE .../queue/{messageId}.
        MOCKED.
      operationId: >-
        get_browsercode_session_queue_agents_browsercode_sessions__session_id__queue_get
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowsercodeQueueList'
        '404':
          description: Session not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowsercodeSessionNotFoundError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    BrowsercodeQueueList:
      properties:
        queue:
          items:
            $ref: '#/components/schemas/BrowsercodeQueuedTurn'
          type: array
          title: Queue
      type: object
      required:
        - queue
      title: BrowsercodeQueueList
      description: Pending queued turns for a session (read-only; send via POST /runs).
    BrowsercodeSessionNotFoundError:
      properties:
        detail:
          type: string
          title: Detail
          default: Session not found
      type: object
      title: BrowsercodeSessionNotFoundError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BrowsercodeQueuedTurn:
      properties:
        id:
          type: integer
          title: Id
          description: Queue message id. Pass to DELETE to cancel this turn.
        sessionId:
          type: string
          format: uuid
          title: Sessionid
        task:
          type: string
          title: Task
        attachedFileIds:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Attachedfileids
        createdAt:
          type: string
          format: date-time
          title: Createdat
      type: object
      required:
        - id
        - sessionId
        - task
        - createdAt
      title: BrowsercodeQueuedTurn
      description: One pending queued turn on a session. Cancel with DELETE .../queue/{id}.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Browser-Use-API-Key

````