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
- Store your API key in
DOCONDA_API_KEYand install the SDK:pip install docondaornpm install @doconda/sdk. - Upload the Word file with
files.upload. - Request the edit with tracked changes, download the result and read the report.
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)) whosechangeslist each paragraphadded,changedorremoved, withbeforeandafter. status:ready, orfailedwitherror.code. A failed edit isn’t charged.
Choose the level
Tracked changes and comments work at every level. Onlyauto 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:
filetakes an uploaded file (file_…), a document Doconda made (doc_…), a public URL or base64, up to 20 MB..docis accepted too; the result comes out as.docx.
FAQ
Can I add comments instead of changes?
Can I add comments instead of changes?
Yes. In Word you can ask for tracked changes, add comments or accept pending changes, all in the same
prompt
sentence.Can I accept all pending changes in a Word file?
Can I accept all pending changes in a Word file?
Yes. Ask for it in the
prompt (“accept all pending changes”) with operation: "edit".Can I edit a document Doconda already made?
Can I edit a document Doconda already made?
Yes: pass its ID (
doc_…) in file instead of uploading it.