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

# List chat sessions (DB-authoritative, enriched from Tempo when available).



## OpenAPI

````yaml /api-reference/openapi.json get /api/observability/session/list
openapi: 3.1.0
info:
  title: Nasiko API
  description: >-
    HTTP API for the Nasiko OpenRuntime: agents, coding harnesses, TokenOps,
    routing, MCP, and secrets. Spec is generated from annotated routes; some
    surfaces are documented on the hand-written pages alongside this file.
  license:
    name: ''
  version: 0.1.0
servers: []
security: []
tags:
  - name: secrets
    description: Encrypted per-user agent secrets
  - name: catalog
    description: >-
      Agent catalog: registration, discovery, versions, per-agent secrets, and
      source import
  - name: agents
    description: >-
      Agent lifecycle: deployments, LLM routing config, update/rollback,
      upload-and-deploy
  - name: orchestrator
    description: >-
      A2A dispatch: routing-engine/ReAct orchestrator and direct agent chat,
      plus routing stats
  - name: users
    description: >-
      User management: CRUD, roles, credentials, accessible agents
      (superuser-only)
  - name: usage
    description: Per-user token usage and cost reporting
  - name: observability
    description: Sessions, traces, spans, agent logs, and FinOps reporting
  - name: llm-router
    description: LLM routing presets, provider/model catalog, and tier→model registry
  - name: mcp
    description: >-
      MCP gateway: agent-facing JSON-RPC tool calls, connector
      registration/upload/sharing, credentials & OAuth, and per-agent tool
      permissions
paths:
  /api/observability/session/list:
    get:
      tags:
        - observability
      summary: >-
        List chat sessions (DB-authoritative, enriched from Tempo when
        available).
      operationId: get_all_sessions
      parameters:
        - name: start_time
          in: query
          description: 'ISO-8601 window start (default: 7 days ago).'
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: limit
          in: query
          description: >-
            Page size (default 25, max 100). Each row costs one trace-store
            lookup,

            so this bounds the request's real work — it is not just a display
            limit.
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
        - name: offset
          in: query
          description: Rows to skip, for offset paging (default 0).
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
      responses:
        '200':
          description: Sessions in the window
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionListResponse'
        '401':
          description: Missing or invalid session
components:
  schemas:
    SessionListResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/SessionListData'
    SessionListData:
      type: object
      required:
        - sessions
        - total_agents
        - successful_agents
        - pagination
      properties:
        pagination:
          $ref: '#/components/schemas/Pagination'
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/SessionSummary'
        successful_agents:
          type: integer
          minimum: 0
        total_agents:
          type: integer
          minimum: 0
    Pagination:
      type: object
      required:
        - has_next_page
      properties:
        end_cursor:
          type:
            - string
            - 'null'
        has_next_page:
          type: boolean
    SessionSummary:
      type: object
      required:
        - id
        - session_id
        - agent_id
        - token_usage
        - cost_summary
        - session_annotations
        - session_annotation_summaries
      properties:
        agent_id:
          type: string
        cost_summary:
          $ref: '#/components/schemas/SimpleCostSummary'
        duration_ms:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        end_time:
          type:
            - string
            - 'null'
        first_input:
          type:
            - string
            - 'null'
        id:
          type: string
        last_output:
          type:
            - string
            - 'null'
        num_traces:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        session_annotation_summaries:
          type: array
          items:
            type: object
        session_annotations:
          type: array
          items:
            type: object
        session_id:
          type: string
        start_time:
          type:
            - string
            - 'null'
        token_usage:
          $ref: '#/components/schemas/TokenUsageSummary'
        trace_latency_ms_p50:
          type:
            - number
            - 'null'
          format: double
        trace_latency_ms_p99:
          type:
            - number
            - 'null'
          format: double
    SimpleCostSummary:
      type: object
      required:
        - total
      properties:
        total:
          $ref: '#/components/schemas/CostEntry'
    TokenUsageSummary:
      type: object
      properties:
        total:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
    CostEntry:
      type: object
      properties:
        cost:
          type:
            - number
            - 'null'
          format: double

````