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
- Store your API key in
DOCONDA_API_KEYand install the SDK (pip install docondaornpm install @doconda/sdk). - Create the document with the shortest retention that works for you.
- 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/reportand/eventsanswer410 content_deleted. expires_atsays when the content will be deleted. Saving a hand-edited file starts the count again, except withnone.
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
Does converting a file keep anything?
Does converting a file keep anything?
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.How do I take each document as soon as it's done?
How do I take each document as soon as it's done?
Register a webhook: Doconda notifies you when the document finishes and you download it to
your system.
Which API URL do I use?
Which API URL do I use?
Every API key (
ak_eu_…) works against https://api.eu.doconda.com/v1.Related
- Retention: per project and per document.
- Account and projects.