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
- 200
- 404
HTML or Markdown file.
Request failed.