---
title: "Get Chat"
method: POST
path: "/api/mcp/get_chat"
tags: ["mcp"]
---

# Get Chat

`POST /api/mcp/get_chat`

## Request

- Base URL: `https://writer.swapp1990.org` (the document declares no server; this is the origin it was published from)
- URL: `https://writer.swapp1990.org/api/mcp/get_chat`
- Auth: none declared

Load a saved chat thread for a chapter+revision.

Returns `{job_id, chapter, revision, messages}`. `messages` is a
list of `{role, content, plan?}` entries in chronological order.
Empty list if nothing was ever saved for this slot. Use
`revision=0` (or omit) for the pre-revision draft thread.

## Request body

- ChatHistoryInput
  - `job_id` string, required: The story job ID.
  - `chapter` integer, required
  - `revision` integer: Revision number. 0 = general chapter chat.
  - `slot` string, nullable: Optional non-chapter chat slot, e.g. selected paragraph thread.

## Response `200`

Successful Response

- GetChatResponse
  - `job_id` string, nullable
  - `messages` object[], nullable
  - `chat` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api.md) · [All operations](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swapp1990/apis/writeforyou-mcp-api/revisions/ce5e2a89ab4d?raw)
