Skip to main content
Create the document with the Doconda API on your server, open it in the editor plugin (@doconda/editor) on your site, and save the user’s version back with documents.updateFile. The agent writes the Word, PowerPoint or Excel file, the user fixes what’s missing in the browser, and the saved version replaces the file in the same document at no charge.

Steps

  1. Create an API key in the dashboard (API keys), store it in DOCONDA_API_KEY and install the SDK on your server: npm install @doconda/sdk.
  2. Get the editor plugin (Editor, 7-day free trial) and install it with the command the dashboard gives you. It needs React 19 or later:
  1. On your server, create the document:
  1. Serve the file from a route of yours. The links in doc.outputs expire after 5 minutes and the browser can’t fetch them from your site, so download the bytes on the server:
  1. Open it in the editor. The route has no file extension, so pass format:
  1. When the user is done, send the file to your server and save it over the same document:
The API key stays on your server, never in the browser. Check on the server that the user may edit that document.

What happens when you save

  • The document’s revision goes up by 1 and a new PDF is made from the saved file.
  • The report (documents.report(id)) lists what the user changed in changes, with the text before and after.
  • Saving a hand-edited version uses no AI and is free. See Save a hand-edited file.
  • Pass { revision } to updateFile to avoid overwriting someone else’s save: the request fails with revision_conflict instead.
  • Whatever the editor doesn’t touch is saved as is: styles, charts and notes are kept.

FAQ

Yes. Create the document with format: "pptx" or "xlsx", download it in that format and pass the editor format="slide" (PowerPoint) or format="cell" (Excel).
Yes. If you already have the bytes in the browser, pass them in file with the name in fileName.
Yes. The editor plugin is bought per organization, separately from the API, with unlimited documents and users. See Licence and domains.