---
title: "List a match chat room's messages"
method: GET
path: "/matches/{matchId}/chat"
tags: ["Match Chat"]
---

# List a match chat room's messages

`GET /matches/{matchId}/chat`

Returns the messages of a match's chat room, newest first, with cursor pagination. The API key owner must be a participant of the match (a member of one of the match's teams); a non-participant receives 404. Requires the chat.read scope.

## Path parameters

- `matchId` string, required — Match ID. The caller must be a participant of this match.

## Query parameters

- `limit` string — Page size (1-100). Defaults to 50.
- `cursor` string — Opaque continuation cursor from a prior page's nextCursor.

## Response `200`

Program cursor-paginated result. nextCursor is null when hasMore is false.

- object
  - `data` ChatMessage[], required
    - `id` string, required
    - `content` string, required
    - `senderUserId` string, required
    - `senderUsername` string, nullable, required
    - `teamId` string, required
    - `replyToId` string, nullable, required
    - `createdAt` string, nullable, required
  - `nextCursor` string, nullable, required
  - `hasMore` boolean, required
  - `timestamp` string, required

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.
- `429` — Rate limited.
- `500` — Internal server error.

---

[API](https://skmtc.net/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.net/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teambattles/teambattles-api/revisions/2ffe8fb53b7d/schema)
