---
title: "Get Shared Chat Messages"
method: GET
path: "/api/public/shared/chats/{share_token}/messages"
tags: ["v2", "chat", "share", "public", "chat", "share", "public"]
---

# Get Shared Chat Messages

`GET /api/public/shared/chats/{share_token}/messages`

## Path parameters

- `share_token` string, required

## Query parameters

- `limit` integer
- `before_sequence` integer, nullable

## Response `200`

Successful Response

- SharedChatMessagesPage — Paginated message window for the public viewer.
  - `messages` SharedChatMessage[], required
    - `id` string, required
    - `role` string, required
    - `content` string, nullable, required
    - `name` string, nullable, required
    - `tool_call_id` string, nullable, required
    - `tool_calls` object[], nullable, required
    - `function_call` object, nullable, required
    - `sequence` integer, required
    - `created_at` string, date-time, required
  - `has_more` boolean, required
  - `oldest_sequence` integer, nullable, required

## Other responses

- `400` — Invalid limit (must be 1..200)
- `404` — Shared chat not found
- `422` — Validation Error

## Changes

- **2026-05-27** `f73eb61e119c` — 1 info
  - endpoint added
- **2026-04-30** `8c84efcb3afb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/public/shared/chats/:share_token/messages/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/b84a51b99815?raw)
