POST
/api/v1/documents/{slug}/assetsUpload a page image
Uploads a PNG, JPEG, GIF or WebP image of up to 10 MB to a page, as multipart/form-data. Use the id it returns in the page as . The image shows to exactly the page's readers.
Guide: Images in pages
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Headers
#X-Edit-SecretstringThe document's edit secret (
sk_…), for a document published without an account. See Edit key.
Request body
#multipart/form-data, required
filefileRequired
Responses
#201Created.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.