---
title: "List agent sessions"
method: GET
path: "/v3/ai-agents/{agent_id}/sessions"
tags: ["v3", "ai-agents"]
---

# List agent sessions

`GET /v3/ai-agents/{agent_id}/sessions`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v3/ai-agents/{agent_id}/sessions`
- Auth: HTTP bearer

List conversation sessions for a text AI agent with pagination and optional filters.

## Path parameters

- `agent_id` string, uuid, required

## Query parameters

- `page` integer: Page number
- `size` integer: Page size
- `status` string, nullable: Filter by status: in_progress | completed | failed
- `workflow_execution_id` string, nullable: Filter by workflow execution ID
- `revision_id` string, uuid, nullable: Only sessions that ran on this agent version

## Headers

- `mentium-workspace-id` string, nullable

## Response `200`

Successful Response

- AIAgentSessionListResponse: Paginated response for listing AI agent sessions.
  - `items` AIAgentSessionResponse[], required
    - `id` string, required
    - `agent_id` string, required
    - `agent_revision_id` string, nullable: The agent version this session ran on
    - `agent_revision_number` integer, nullable: That version's number
    - `status` 'in_progress' | 'completed' | 'failed', required: Session status
    - `message_count` integer: Number of LLM messages in this session.
    - `messages` object[], nullable: Full LLM message history (system, user, assistant, tool messages). Only populated on detail endpoint.
    - `available_tools` object, nullable: Snapshot of tools available to the agent during this session run. Includes static tool identifiers plus resolved MCP/automation tools.
    - `workflow_execution_id` string, nullable: Linked workflow execution ID
    - `workflow_node_id` string, nullable: Linked workflow node ID
    - `started_at` string, date-time, nullable, required
    - `completed_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mentium/apis/mentium-api.md) - [All operations](https://skmtc.dev/mentium/apis/mentium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mentium/apis/mentium-api/revisions/b4ed8e59432e?raw)
