/api/v1/workspaces/{workspace_id}/documentsAdd a document
Files one of your documents in the workspace, by its id.
Path parameters
#workspace_idstringRequiredThe workspace's id, from the address of its settings page (
markdrop.in/settings/workspaces/<workspace-id>) or from List workspaces.
Request body
#application/json, required
document_idstringRequiredfolder_idstring
Responses
#201Created.401No token, or the token is revoked or mistyped.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.
201 response: 30 fields (MyDocListItem)
idstring | nullslugstringurlstringtitlestring | nullShown on the page and in link previews.
content_previewstringcreated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.updated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.expires_atstring (date-time) | nullISO 8601, for example
2026-11-30T12:00:00Z.viewsintegerDefault
0.export_pdf_countintegerDefault
0.copy_url_countintegerDefault
0.is_password_protectedbooleanDefault
false.google_doc_urlstring | nullgoogle_doc_stalebooleanDefault
false.vscode_syncedbooleanDefault
false.encryptedbooleanSet by clients that encrypt in the browser:
contentandtitleare already ciphertext. The server never sees the key. Defaultfalse.kindstringDefault
"markdown".mimestring | nullrendererstring | nulltype_labelstring | nullsize_bytesinteger | nulloriginal_filenamestring | nullworkspace_idstring | nullfolder_idstring | nullfolder_patharray of stringaccess_levelstringWho can open it:
link(anyone with the link),private(only you and the people you share it with) orworkspace(members of its workspace). Default"link".shared_with_countintegerDefault
0.shared_by_namestring | nullshared_by_emailstring | nullis_minebooleanDefault
true.