rewrite
Rewrite
Rewrite selected text within the context of a full text.
This endpoint is designed to work with Tiptap's AI Changes extension:
- User selects text in the editor
- Editor calls this API with selected text + full text context
- API returns rewritten text
- Tiptap tracks changes and allows accept/reject workflow
The rewriting considers the full text context to maintain consistency and coherence with the surrounding content.
post/v2/rewrite/
Request
- Base URLhttps://api.mentium.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Headers
mentium-workspace-idstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.