---
title: "Chat Yomu 2"
method: POST
path: "/chat_yomu_2"
---

# Chat Yomu 2

`POST /chat_yomu_2`

## Request

- Base URL: `https://api.yomu.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.yomu.ai/chat_yomu_2`
- Auth: API key in header `ACCESS_TOKEN`

Stream Yomu document-agent chat/edits as newline-delimited JSON.

Same live-node contract as /agent_chat_revise_2, without writing-rule tools.

## Request body

- ChatYomu2Request: Node-addressed Yomu document chat. Same portable contract as ``AgentChatRevise2Request`` (live TipTap nodes, NDJSON chat/edit replies) without Revise writing-rule tools.
  - `messages` AgentChatMessage[]
    - `role` 'user' | 'assistant', required
    - `content` string, required
  - `nodes` AgentChatNode[], nullable
    - `id` string, required
    - `type` string, required
    - `index` integer, required
    - `typeIndex` integer, required
    - `text` string, required
    - `marks` AgentChatNodeMark[], nullable
      - `mark` 'bold' | 'italic' | 'strike' | 'underline' | 'code', required
      - `text` string, required
  - `context` string, nullable
  - `language` string, nullable
  - `plan` string, nullable
  - `words_used` integer, nullable
  - `prefer_gpt` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yomu/apis/yomu-api.md) - [All operations](https://skmtc.dev/yomu/apis/yomu-api/llms.txt) - [OpenAPI document](https://skmtc.dev/yomu/apis/yomu-api/revisions/eff015f3726e?raw)
