---
title: "List user sessions"
method: GET
path: "/api/sessions"
tags: ["Sessions"]
---

# List user sessions

`GET /api/sessions`

Returns a list of all sessions for the current user in the current organization. Sessions are sorted by last update time (most recent first). Max 50 sessions per user/org; oldest sessions are auto-evicted when limit is reached.

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Array of session metadata

- SessionMetadata[]
  - `id` string, required — Session ID (base64 URL-safe 32-byte token)
  - `title` string, required — Session title
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `messageCount` integer, required — Total number of messages
  - `activeRunId` string — ID of currently active agent run (if any)
  - `model` 'base' | 'large' — LLM app model abstraction locked to this session, if selected

## Other responses

- `401` — Unauthorized (missing or invalid authentication)
- `500` — Internal server error

---

[API](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) · [All operations](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/consensys/ask-o11y-ai-powered-observability-assistant-api/versions/3ccc03eccaef/schema)
