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

# Get Session



## OpenAPI

````yaml /openapi.json get /api/workspaces/{id}/sessions/{session_id}
openapi: 3.1.0
info:
  title: Konduktor
  version: 0.1.0
servers:
  - url: http://localhost:8080
    description: Local instance (default)
security: []
paths:
  /api/workspaces/{id}/sessions/{session_id}:
    get:
      tags:
        - sessions
      summary: Get Session
      operationId: get_session_api_workspaces__id__sessions__session_id__get
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            title: Id
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SessionDetailResponse:
      properties:
        id:
          type: string
          title: Id
        workspace_id:
          type: string
          title: Workspace Id
        task_id:
          type: string
          title: Task Id
        task_run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Run Id
        session_name:
          type: string
          title: Session Name
        status:
          type: string
          title: Status
        runner_pid:
          anyOf:
            - type: integer
            - type: 'null'
          title: Runner Pid
        exit_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Exit Code
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        line_count:
          type: integer
          title: Line Count
        last_activity_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Activity At
        started_at:
          type: string
          title: Started At
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
        duration:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration
        keep_status:
          type: boolean
          title: Keep Status
          default: false
        worktree_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Worktree Path
        claude_session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Claude Session Id
        attempt_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Attempt Number
        task_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Title
      type: object
      required:
        - id
        - workspace_id
        - task_id
        - task_run_id
        - session_name
        - status
        - runner_pid
        - exit_code
        - error_message
        - line_count
        - last_activity_at
        - started_at
        - finished_at
      title: SessionDetailResponse
      description: Extended session response with task info and attempt details.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````