Skip to main content
You don’t have to do anything for the first part: Doconda stores documents and files in the European Union (Ireland), and the AI that processes them also runs in the EU. To delete them, set retention on each request (from none, 15 minutes, to 90d), or call DELETE /v1/documents/{id} as soon as you have downloaded the file.

Steps

  1. Store your API key in DOCONDA_API_KEY and install the SDK (pip install doconda or npm install @doconda/sdk).
  2. Create the document with the shortest retention that works for you.
  3. Download it, then delete it along with any files you uploaded.
documents.delete answers 204 and the content is gone. If you uploaded files, delete them too with files.delete(id).

Which values retention accepts

There is no “forever”. To change the default for a whole project, go to Organization → Projects → Kept for in the dashboard. It applies to what is created from then on, including files uploaded with POST /v1/files.

What is deleted and what stays

  • Deleted: the files (Word, PDF, images), your request, the report, the events and the metadata; for an artifact, its page and its data.
  • Stays, for billing: the document record with its name, status, format, type, pages, quality and cost.
  • The document shows content_deleted_at, and /report and /events answer 410 content_deleted.
  • expires_at says when the content will be deleted. Saving a hand-edited file starts the count again, except with none.

Limits

  • An artifact with retention: "none" can’t keep shared data: it keeps it in each visitor’s browser.
  • Download links expire after 5 minutes; documents.outputs(id) returns new ones while the content exists.

FAQ

A conversion to text (md, txt, html or csv) keeps nothing once it returns the text. A conversion to a file (Word, PDF…) is deleted 15 minutes after it was made.
Register a webhook: Doconda notifies you when the document finishes and you download it to your system.
Every API key (ak_eu_…) works against https://api.eu.doconda.com/v1.