Skip to main content
To edit a Word document with AI without breaking its format, upload it and ask for the change in a sentence with operation: "edit". Doconda changes only what you ask and leaves the rest identical; new content copies the document’s formatting, so an added clause follows the numbering and look of the existing ones.

Steps

  1. Store your API key in DOCONDA_API_KEY and install the SDK (pip install doconda or npm install @doconda/sdk).
  2. Upload the Word file with files.upload (or use the doc_… id of a document Doconda already made).
  3. Ask for the changes, check the report and download the result.

What you get back

  • The same Word file, with only the requested changes, and its PDF.
  • A report: in edits, each change with the text before and after. Whatever couldn’t be done shows up as rejected, with the reason.
  • The result is reviewed as in Review (tables that overflow, numbering gaps…).
  • status: ready, ready_with_warnings, needs_review or failed. If the request can’t be turned into changes, failed with edit_not_understood, not charged.

Limits

  • 50 pages maximum.
  • Tracked changes and comments need quality: "standard" or "best".
  • .doc is accepted: the result comes out as .docx.

FAQ

Rewriting it whole tends to lose styles, numbering and tables. With edit the rest of the document stays identical and new content follows its formatting.
Yes, with the same call. In a PDF, if you ask for more than changing text, it comes out as Word (pdf.converted).
Save it as a new version with POST /documents/{id}/versions: it uses no AI and isn’t charged. See Edit.

Keep reading