---
title: "Agent Chat Revise"
method: POST
path: "/agent_chat_revise"
---

# Agent Chat Revise

`POST /agent_chat_revise`

## 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/agent_chat_revise`
- Auth: API key in header `ACCESS_TOKEN`

Agentic Revise chat endpoint.
Returns either a normal chat response or structured edit commands that the
frontend can apply to live TipTap nodes by stable node id.

## Request body

- AgentChatReviseRequest
  - `prompt` string, required
  - `messages` object[], nullable
  - `revisionId` string, nullable
  - `isProduction` boolean, nullable
  - `nodes` AgentReviseNode[]
    - `id` string, required
    - `type` string, required
    - `text` string, required
    - `index` integer, nullable
    - `typeIndex` integer, nullable
  - `selectedNodeIds` string[]
  - `context` string, nullable
  - `model_id` string, nullable
  - `plan` string, nullable
  - `words_used` integer, 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)
