content.markdown, the look in style and format: "docx" to POST /v1/documents. Doconda lays
out your text as is, puts the style on the Word styles (Normal, Heading 1…) and returns an editable .docx plus its
PDF.
Convert Markdown to a styled Word file
- Create an API key in the dashboard, under API keys, and store it in
DOCONDA_API_KEY. - Install the SDK:
pip install docondaornpm install @doconda/sdk. - Send the Markdown and the style, then download the Word file.
ready standard, and note.docx on disk. documents.create waits until the document finishes, even
past the API’s 120 s direct-call limit.
The Markdown supports headings, paragraphs, lists, tables, bold and italics, links, page breaks and images. Point to an
uploaded image with  (the first image in sources) or to a public one with .
What you get back
- The
.docx: the look lives in the document’s styles, so text you add later in Word follows the same design. - Its PDF, with the font embedded:
download(id, "pdf"). style_applied: the style the file ended up with (font,colors,align,page_numbers…), to check it.status:ready, orfailedwitherror.code. A failed document isn’t charged.
Price and time
From your Markdown,quality: "auto" (the default) always uses standard.
The same document written from a
prompt costs €0.15, €0.50 or €1.50. See pricing.
Behavior to be aware of
- Your text is used as is: Doconda doesn’t rewrite it. To have it written, send
promptinstead ofcontent. - Send exactly one of
promptorcontent. Sending both is rejected with422 input_invalid. content.markdowntakes up to 500,000 characters.- Copying the design of one of your files needs a
promptthat asks for it, so it isn’t available from Markdown alone. Describe the look instyleinstead.
FAQ
Which fonts can I use?
Which fonts can I use?
Any Google Fonts family, plus Calibri, Cambria, Arial, Times New Roman and Courier New. A font Doconda can’t render
is replaced by the closest one. See Style.
Can I call the API without the SDK?
Can I call the API without the SDK?
Yes:
POST https://api.eu.doconda.com/v1/documents with the same JSON body and Authorization: Bearer with your
key. The call answers 202 if the document isn’t finished after 120 s; follow it with GET /v1/documents/{id}.Can I get only the PDF?
Can I get only the PDF?
Yes, with
format: "pdf". With docx you get the Word file and its PDF.