GET
/api/v1/documents/{slug}/exportExport a page
Downloads a page as portable Markdown (md), one self-contained HTML file (html), or a .zip with its images (zip). With subpages=true its sub-pages come too, in a .zip. Editors can always export; readers can unless the page turns exporting off.
Guide: Export a page
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Query parameters
#formatstringmd(the default),htmlorzip. One ofmd,html,zip. One ofmd,html,zip. Default"md".subpagesbooleanInclude its sub-pages. Default
false.
Headers
#X-Read-PasswordstringThe password of a password-protected document.
X-Edit-SecretstringThe document's edit secret (
sk_…), for a document published without an account. See Edit key.X-Markdrop-WorkspacestringA workspace's id: answer only if the document is in that workspace, else
404. Workspace domains send it; you rarely need it.
Responses
#200OK.413Too many pages to export at once.422The document is end-to-end encrypted: export it from the page in your browser.429Too many requests from your IP address. Wait the seconds inRetry-After.