Skip to main content
Upload the Word file and request the edit with operation: "edit", saying in prompt that you want it “with tracked changes”. Each change is marked as a revision by “Doconda”, so whoever opens the file in Word can accept or reject it.

Edit a Word file with tracked changes

  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.
  3. Request the edit with tracked changes, download the result and read the report.
You should see best 2: the level used and the number of changes. With quality: "auto" (the default), an edit that asks for tracked changes or comments picks best.

What you get back

  • The same Word file with each change marked as a revision by “Doconda”. The rest of the document stays identical.
  • New content copies the document’s formatting: an added clause follows the numbering and look of the existing ones.
  • Its PDF, and a report (documents.report(id)) whose changes list each paragraph added, changed or removed, with before and after.
  • status: ready, or failed with error.code. A failed edit isn’t charged.

Choose the level

Tracked changes and comments work at every level. Only auto raises the level for them. Set quality: "standard" or "fast" to pay less, or max_quality to cap what auto may pick. See quality levels. Behavior to be aware of:
  • file takes an uploaded file (file_…), a document Doconda made (doc_…), a public URL or base64, up to 20 MB.
  • .doc is accepted too; the result comes out as .docx.

FAQ

Yes. In Word you can ask for tracked changes, add comments or accept pending changes, all in the same prompt sentence.
Yes. Ask for it in the prompt (“accept all pending changes”) with operation: "edit".
Yes: pass its ID (doc_…) in file instead of uploading it.
For everything an edit can do, see Edit.