---
title: "Get Chat Messages"
method: GET
path: "/api/publisher/{publisher_id}/chat/messages"
tags: ["Publisher"]
---

# Get Chat Messages

`GET /api/publisher/{publisher_id}/chat/messages`

## Request

- Base URL: `https://alpha-bazaar-signal-server.onrender.com`
- URL: `https://alpha-bazaar-signal-server.onrender.com/api/publisher/{publisher_id}/chat/messages`
- Auth: none required

Get chat messages for a publisher chat room with pagination.

Access rules:
- Only monetized publishers have chatrooms.
- Publisher owner always has access to their own chatroom.
- Active subscribers (via Stripe) get full chat access.
- Non-subscribers receive a structured 403 with pricing and access instructions.

Args:
    publisher_id: Publisher ID (username) or actual publisher ID
    limit: Maximum number of messages to return (default 25, max 100)
    before: Message ID to paginate before (for loading older messages)
    current_user: Authenticated user (from JWT token)

Returns:
    ChatMessagesResponse with messages and pagination info

## Path parameters

- `publisher_id` string, required: Publisher UUID

## Query parameters

- `limit` integer: Results per page
- `before` string, nullable: Cursor for pagination (message ID)

## Response `200`

Successful Response

- ChatMessagesResponse
  - `messages` unknown[], required
    - unknown
  - `has_more` boolean, required
  - `oldest_message_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server.md) · [All operations](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server/llms.txt) · [OpenAPI document](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server/revisions/01654ec03d07?raw)
