GET/api/v1/files/{slug}

Get file details

A published file's size, type, current version, SHA-256 and, for video and audio, its duration and dimensions.

API token required120 per minute per IPMCP: get_file_infoCLI: markdrop info
Code samples and Try it

Path parameters

#
  • slugstringRequired

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

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.
200 response: 15 fields (FileInfoResponse)
  • slugstring
  • urlstring
  • markdrop_urlstring | null
  • workspace_urlstring | null
  • titlestring | null

    Shown on the page and in link previews.

  • content_typestring
  • size_bytesinteger
  • sha256string | null
  • versioninteger
  • updated_atstring (date-time)

    ISO 8601, for example 2026-11-30T12:00:00Z.

  • created_atstring (date-time)

    ISO 8601, for example 2026-11-30T12:00:00Z.

  • mediaobject | null
    5 fields inside
    • duration_snumber | null
    • widthinteger | null
    • heightinteger | null
    • video_codecstring | null
    • audio_codecstring | null
  • poster_urlstring | null
  • download_urlstring | null
  • accessstring
Did this page help?