---
title: "Get Super Agent Session History"
method: GET
path: "/super-agent/sessions/{sessionId}/messages"
tags: ["Super Agent"]
---

# Get Super Agent Session History

`GET /super-agent/sessions/{sessionId}/messages`

## Request

- Base URL: `https://api.attention.tech/v2`
- URL: `https://api.attention.tech/v2/super-agent/sessions/{sessionId}/messages`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/attention/apis/attention-service-v2/docs/super-agent/sessions/:sessionId/messages/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves all messages for a given super agent chat session. Session must belong to user's organization.

## Path parameters

- `sessionId` string, required

## Response `200`

Session messages retrieved successfully

- SuperAgentSessionHistoryResponse
  - `session_id` string: The session ID
  - `title` string: Session title
  - `status` string: Current session status
  - `messages` SuperAgentMessage[]: List of messages in the session
    - `id` string: Unique identifier of the message
    - `session_id` string: ID of the session this message belongs to
    - `content` string: The message content
    - `role` 'user' | 'assistant': The role of the message sender
    - `timestamp` string, date-time: When the message was created
    - `metadata` object: Additional metadata associated with the message

## Other responses

- `401`: Valid user-level API key required
- `403`: Session does not belong to user's organization
- `404`: Session not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/attention/apis/attention-service-v2.md) - [All operations](https://skmtc.dev/attention/apis/attention-service-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/attention/apis/attention-service-v2/revisions/cd99c71f42bb?raw)
