Skip to main content

Export a document

GET 

/api/documents/:id/export

Returns the document's last saved body as a downloadable file (Content-Disposition: attachment) named after the title, .md or .html. format=markdown gives Markdown; the default HTML is a fragment rather than a full page, with math rendered as MathML, heading anchors, and the table of contents filled in. Uploaded images are embedded as data: URLs so the file is self-contained. Anyone with read access may export, including guests.

Request​

Responses​

HTML or Markdown file.