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

# Get session

> Live Record sessions are private to the recorder (403 for others while `status=recording`).



## OpenAPI

````yaml /openapi/control-plane.yaml get /sessions/{id}
openapi: 3.1.0
info:
  title: Alibi Control Plane API
  version: 0.1.0
  description: >-
    HTTP API mounted at `/api` on the Alibi control plane (default
    `http://127.0.0.1:4100`). Derived from
    `apps/control-plane/src/api/routes.ts`. Auth via `x-alibi-api-key` or Bearer
    token. Demo keys: `junnu-key-demo`, `laddu-key-demo`, `viewer-key-demo`.
  license:
    name: MIT
servers:
  - url: http://127.0.0.1:4100/api
    description: Local control plane
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: System
    x-group: System
  - name: Auth
    x-group: Auth
  - name: Projects
    x-group: Projects
  - name: Baselines
    x-group: Baselines
  - name: Policy
    x-group: Policy
  - name: Cases
    x-group: Cases
  - name: Sandboxes
    x-group: Sandboxes
  - name: Sessions
    x-group: Sessions
  - name: Runs
    x-group: Runs
  - name: Verify
    x-group: Verify
  - name: CI
    x-group: CI
  - name: Hosted
    x-group: Hosted environments
paths:
  /sessions/{id}:
    get:
      tags:
        - Sessions
      summary: Get session
      description: >-
        Live Record sessions are private to the recorder (403 for others while
        `status=recording`).
      operationId: getSession
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Session id
      responses:
        '200':
          description: Session + optional sandbox
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  projectId:
                    type: string
                  suiteId:
                    type: string
                  status:
                    type: string
                    enum:
                      - idle
                      - recording
                      - stopped
                  steps:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        order:
                          type: integer
                        source:
                          type: string
                          enum:
                            - api
                            - browser
                        request:
                          type: object
                          properties:
                            method:
                              type: string
                            path:
                              type: string
                            headers:
                              type: object
                              additionalProperties:
                                type: string
                            body: {}
                        response:
                          type: object
                          properties:
                            status:
                              type: integer
                            body: {}
                        mutations:
                          type: array
                          items:
                            type: object
                            additionalProperties: true
                        reads:
                          type: array
                          items:
                            type: object
                            additionalProperties: true
                        assertions:
                          type: array
                          items:
                            type: object
                            additionalProperties: true
                        ignoreRules:
                          type: array
                          items:
                            type: object
                            additionalProperties: true
                        browser:
                          type: object
                          additionalProperties: true
                  isolationMode:
                    type: string
                    enum:
                      - schema_prefix
                      - dedicated_db
                      - warm_pool
                      - docker_session
                      - k8s_job
                      - branch_db
                    description: >-
                      1 schema_prefix · 2 dedicated_db · 3 warm_pool (default) ·
                      4 docker_session · 5 k8s_job · 6 branch_db
                  sandboxId:
                    type: string
                  recorder:
                    type: string
                  startedAt:
                    type: string
                    format: date-time
                  stoppedAt:
                    type: string
                    format: date-time
                  sandbox:
                    type: object
                    properties:
                      id:
                        type: string
                      projectId:
                        type: string
                      mode:
                        type: string
                        enum:
                          - schema_prefix
                          - dedicated_db
                          - docker_session
                          - k8s_job
                          - branch_db
                      dataPlane:
                        type: string
                      status:
                        type: string
                        enum:
                          - warming
                          - ready
                          - checked_out
                          - releasing
                          - error
                      label:
                        type: string
                      sessionId:
                        type: string
                      recorder:
                        type: string
                      sql:
                        type: object
                        additionalProperties: true
                      redis:
                        type: object
                        additionalProperties: true
                      docker:
                        type: object
                        additionalProperties: true
                      k8s:
                        type: object
                        additionalProperties: true
                      branch:
                        type: object
                        additionalProperties: true
                      createdAt:
                        type: string
                        format: date-time
                      checkedOutAt:
                        type: string
                        format: date-time
        '403':
          description: Private to recorder
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-alibi-api-key
      description: 'Demo: junnu-key-demo | laddu-key-demo | viewer-key-demo'
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.