Command Palette

Search for a command to run...

Log In

Download a Document

get/public/v1/documents/{document}/download

Stream the file content of a Document. The Content-Type header carries the file's media type, and Content-Disposition carries a filename made from the Document's name and the stored file's extension. Returns 404 if the file is no longer in storage.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • documentstringrequired

    The document UUID

Response

200application/octet-stream

The file content

  • 401Unauthenticated
  • 403Authorization error
  • 404Not found