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

# Get Session

> Return a single session's reconstructed text-only message thread.

Returns 501 when the adapter doesn't support detail retrieval and
404 when the session id is unknown (or when the SSO-scoped user
isn't allowed to see it — the adapter enforces that and returns
``None``).



## OpenAPI

````yaml /standalone/openapi.json get /agent/sessions/{session_id}
openapi: 3.1.0
info:
  title: Idun Agent Engine Server
  description: A production-ready server for conversational AI agents
  version: 0.6.1
servers: []
security: []
tags:
  - name: Runtime
    description: >-
      Public agent run endpoints, engine operations, and chat-channel webhooks.
      SSE streaming via the AG-UI protocol.
  - name: Agent Configuration
    description: >-
      Singleton admin endpoints for the agent, prompts, memory, guardrails, and
      onboarding wizard.
  - name: Auth & SSO
    description: >-
      Login, sessions, password change, SSO config, and the public SSO discovery
      endpoint.
  - name: Integrations & Tools
    description: MCP server registry and external integration credentials.
  - name: Observability
    description: Tracing/logging provider configuration.
  - name: Traces
    description: >-
      Trace and span storage admin endpoints — list, detail, delete, and
      pipeline-health for the standalone trace store.
  - name: Dashboard
    description: >-
      Operator dashboard widgets — KPIs, time-series, top errors, and
      configuration summary.
paths:
  /agent/sessions/{session_id}:
    get:
      tags:
        - Runtime
      summary: Get Session
      description: |-
        Return a single session's reconstructed text-only message thread.

        Returns 501 when the adapter doesn't support detail retrieval and
        404 when the session id is unknown (or when the SSO-scoped user
        isn't allowed to see it — the adapter enforces that and returns
        ``None``).
      operationId: get_session_agent_sessions__session_id__get
      parameters:
        - 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/SessionDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SessionDetail:
      properties:
        id:
          type: string
          title: Id
        lastUpdateTime:
          anyOf:
            - type: number
            - type: 'null'
          title: Lastupdatetime
        userId:
          anyOf:
            - type: string
            - type: 'null'
          title: Userid
        threadId:
          anyOf:
            - type: string
            - type: 'null'
          title: Threadid
        messages:
          items:
            $ref: '#/components/schemas/SessionMessage'
          type: array
          title: Messages
      type: object
      required:
        - id
      title: SessionDetail
      description: Full /agent/sessions/{id} response. Messages are text-only.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SessionMessage:
      properties:
        id:
          type: string
          title: Id
        role:
          type: string
          enum:
            - user
            - assistant
          title: Role
        content:
          type: string
          title: Content
        timestamp:
          anyOf:
            - type: number
            - type: 'null'
          title: Timestamp
      type: object
      required:
        - id
        - role
        - content
      title: SessionMessage
      description: One message in a restored session detail.
    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

````