---
title: "Get chat messages"
method: GET
path: "/api/chat/{chatId}"
tags: ["Chat"]
---

# Get chat messages

`GET /api/chat/{chatId}`

Load messages and vote map for one chat. Returns 404 with empty messages when the chat is missing or inaccessible (matches legacy client behavior).

## Path parameters

- `chatId` string, required

## Response `200`

Chat detail

- ChatDetail
  - `id` string, required
  - `messages` ChatMessage[], required
    - `role` string, required
    - `id` string, required
    - `parts` object[], required
  - `votes` object, required

## Other responses

- `401` — Unauthorized
- `403` — Subscription required
- `404` — Not found — empty messages
- `422` — Validation failed

---

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