GET/api/v1/documents/{slug}/versions/{n}

Get a page version

One version's Markdown and image links, with the page as it is now (current_doc) to compare.

API token required60 per minute per IPMCP: get_page_version

Guide: Version history

Code samples and Try it

Path parameters

#
  • slugstringRequired

    The document's address: the part after markdrop.in/.

  • nintegerRequired

    The version number, from List page versions.

Headers

#
  • X-Markdrop-Workspacestring

    A workspace's id: answer only if the document is in that workspace, else 404. Workspace domains send it; you rarely need it.

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?