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

# Async Session Status

> Polling endpoint paired with `POST /v1/sessions/async`. Returns the
current lifecycle `status` of the async request and, once the pod is
up, the embedded `session` object containing `session_id`, `cdp_url`
and `live_view_url`.




## OpenAPI

````yaml /openapi.yaml get /v1/sessions/async/{request_id}/status
openapi: 3.1.0
info:
  title: AnchorBrowser API
  version: 1.0.0
  description: APIs to manage all browser-related actions and configuration.
servers:
  - url: https://api.anchorbrowser.io
    description: API server
security: []
paths:
  /v1/sessions/async/{request_id}/status:
    get:
      tags:
        - Browser Sessions
      summary: Async Session Status
      description: |
        Polling endpoint paired with `POST /v1/sessions/async`. Returns the
        current lifecycle `status` of the async request and, once the pod is
        up, the embedded `session` object containing `session_id`, `cdp_url`
        and `live_view_url`.
      parameters:
        - name: request_id
          in: path
          required: true
          description: The `request_id` returned from `POST /v1/sessions/async`.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Async session status retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncSessionStatusResponseSchema'
        '401':
          description: Invalid API Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Async request not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    AsyncSessionStatusResponseSchema:
      type: object
      description: |
        Polling response for `GET /v1/sessions/async/{request_id}/status`.
      properties:
        data:
          type: object
          required:
            - request_id
            - status
            - created_at
            - progress
          properties:
            request_id:
              type: string
              format: uuid
              description: The `request_id` returned from `POST /v1/sessions/async`.
            status:
              type: string
              enum:
                - pending
                - processing
                - ready
                - completed
                - failed
                - cancelled
              description: |
                Lifecycle of the async request itself. `ready` is surfaced once
                the underlying browser pod is up and the session is connectable.
            created_at:
              type: string
              format: date-time
              description: When the async request was accepted.
            session:
              $ref: '#/components/schemas/BatchSessionItemSchema'
              description: |
                The single browser session backing this async request.
                Absent until the underlying pod registers and the session row
                is inserted.
            progress:
              type: object
              required:
                - current_phase
              properties:
                current_phase:
                  type: string
                  enum:
                    - queued
                    - provisioning
                    - configuring
                    - ready
                  description: The session's current pod-provisioning phase.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
    BatchSessionItemSchema:
      type: object
      properties:
        item_index:
          type: integer
          description: Index of this session within the batch (0-based)
        session_id:
          type: string
          format: uuid
          description: Unique identifier for the browser session (if created successfully)
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
            - cancelled
          description: Current status of this individual session
        cdp_url:
          type: string
          description: CDP websocket connection URL (if session is ready)
        live_view_url:
          type: string
          description: Live view URL for the session (if session is ready)
        error:
          type: string
          description: Error message if session creation failed
        retry_count:
          type: integer
          description: Number of times this session creation has been retried
        started_at:
          type: string
          format: date-time
          description: Timestamp when session creation started
        completed_at:
          type: string
          format: date-time
          description: Timestamp when session creation completed
        metadata:
          type: object
          additionalProperties: true
          description: Session-specific metadata
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````