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

# Get agent session

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

## 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/{session_id}`
- Auth: HTTP bearer

Get a single AI agent session by ID including the full message/tool-call history.

## Path parameters

- `agent_id` string, uuid, required
- `session_id` string, uuid, required

## Headers

- `mentium-workspace-id` string, nullable

## Response `200`

Successful Response

- AIAgentSessionResponse: Response schema for a single AI agent session (one text-agent invocation).
  - `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

## 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)
