---
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`

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.net/dealhub/apis/quote-api.md) · [All operations](https://skmtc.net/dealhub/apis/quote-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dealhub/quote-api/versions/c30f5b9fbfab/schema)
