Attachments API

Upload an image to a note

coming soon

Download an attachment

  • GET https://hackmd.io/_uploads/:filename
  • Url params:
    • filename: string
  • Authorization:
  • Success Response
    • Trigger the download
  • Sample usage
    # -L option turn on the follow redirection
    ​curl -H "Authorization: Bearer TOKEN" https://hackmd.io/_uploads/By9HvYLR6.png -L > output.png
    

:bulb: Note

  • Turn on the "follow redirection" option in your REST client.
  • You have to use the hackmd.io domain instead of the api.hackmd.io domain in regular APIs.