v3
ai-agents

Get agent session

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

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)
  • Auth
    HTTP bearer

Path parameters

agent_idstring uuid required
session_idstring uuid required

Headers

mentium-workspace-idstring nullable

Response

Successful Response

idstring required
agent_idstring required
agent_revision_idstring nullable

The agent version this session ran on

agent_revision_numberinteger nullable

That version's number

status'in_progress' | 'completed' | 'failed' required

Session status

message_countinteger

Number of LLM messages in this session.

messagesobject[] nullable

Full LLM message history (system, user, assistant, tool messages). Only populated on detail endpoint.

available_toolsobject nullable

Snapshot of tools available to the agent during this session run. Includes static tool identifiers plus resolved MCP/automation tools.

workflow_execution_idstring nullable

Linked workflow execution ID

workflow_node_idstring nullable

Linked workflow node ID

started_atstring date-time nullable required
completed_atstring date-time nullable required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.