---
title: "List the messages belong to this session"
method: GET
path: "/ai/agents/session/{sessionId}/messages"
tags: ["AI Agent", "Experimental"]
---

# List the messages belong to this session

`GET /ai/agents/session/{sessionId}/messages`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/ai/agents/session/{sessionId}/messages`
- Auth: API key in header `X-API-Key`

The message will be returned in the most recent order, with the latest being the first

## Path parameters

- `sessionId` string, required

## Query parameters

- `limit` integer

## Response `200`

successful operation

- Message[]
  - `role` string, required
  - `message` string, required
  - `createdAt` integer, required

---

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