Skip to main content
POST
Read any file into Markdown ready for a model (Word, PowerPoint, Excel, PDF, .doc/.ppt/.xls, TXT, Markdown, HTML)

Authorizations

Authorization
string
header
required

Authorization: Bearer ak_eu_…, a key from the dashboard (API keys).

Body

file
required

A file uploaded with POST /files.

Pattern: ^file_

Response

The text, as Markdown. Nothing is kept.

The text of the file. Doconda keeps nothing once it has given it to you.

object
string
required
Allowed value: "extraction"
id
string
required
Pattern: ^doc_[0-9A-HJKMNP-TV-Z]{26}$
format
enum<string>
required
Available options:
docx,
pptx,
xlsx,
pdf,
doc,
ppt,
xls,
txt,
md,
html,
png,
jpg,
gif,
webp
markdown
string
required

Headings, lists and tables kept; one section per slide or sheet; page markers in a PDF. Scanned pages and pictures are read with OCR.

chars
integer
required

Length of the whole text, before any cut.

Required range: -9007199254740991 <= x <= 9007199254740991
truncated
boolean
required

true when longer than 2 000 000 characters.

pages
integer | null
required

Pages (PDF), slides (PowerPoint) or sheets (Excel).

Required range: -9007199254740991 <= x <= 9007199254740991