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

# List sessions (SDK)

> List sessions for the current agent. Returns last message for each session.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/runtime/sessions
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/sessions:
    get:
      tags:
        - Runtime API - Sessions Management
      summary: List sessions (SDK)
      description: >-
        List sessions for the current agent. Returns last message for each
        session.
      operationId: RuntimeSessionsManagementController_listSessions
      parameters:
        - name: lastInteractionBefore
          required: false
          in: query
          description: ISO date — sessions inactive before this date
          schema:
            type: string
        - name: status
          required: false
          in: query
          description: 'Filter by status: in_progress, qualified, closed, etc.'
          schema:
            type: string
        - name: limit
          required: false
          in: query
          description: Items per page (default 20, max 100)
          schema:
            type: string
        - name: offset
          required: false
          in: query
          description: Items to skip (default 0)
          schema:
            type: string
      responses:
        '200':
          description: Sessions listed successfully.
      security:
        - bearer: []
components: {}

````