---
title: "Get session messages"
method: GET
path: "/v1/sessions/{id}/messages"
tags: ["Sessions"]
---

# Get session messages

`GET /v1/sessions/{id}/messages`

## Request

- Base URL: `https://api.marketintell.ai`
- URL: `https://api.marketintell.ai/v1/sessions/{id}/messages`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Get the conversation history for a specific session you own. Returns up to `limit` messages (default 50, max 200) in chronological order with role, content, and timestamp. 404 if the session doesn't exist or isn't owned by the calling key.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `limit` integer

## Response `200`

Session message history

- object
  - `session_id` string, uuid, required
  - `messages` object[], required
    - `role` 'user' | 'assistant' | 'system', required
    - `content` string, required
    - `created_at` string, date-time
    - `tools_used` string[]: MCP/Mastra tool ids invoked while generating this message

---

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