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

# List user sessions

`GET /api/sessions`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/sessions`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

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

## Changes

- **2026-05-21** `c2ffd094cb5d`: 1 info
  - added the optional property `items/model` to the response with the `200` status
- **2026-02-18** `5e7e9a233e2d`: 1 warning
  - removed the optional property `items/model` from the response with the `200` status

[Operation history](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/changes/api/sessions/get.md)

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
