Files

Download file from vault

Downloads a file from the vault storage bucket. Requires team file key (fk) query parameter for access.

get/files/download/file

Request

  • Base URL
    https://api.midday.ai
  • URL
    https://api.midday.ai/files/download/file
  • Auth
    • OAuth 2
      Authorization code: https://app.midday.ai/oauth/authorize
      Token URL: https://api.midday.ai/oauth/token
    • or HTTP bearer

Query parameters

pathstring required

Path to the file in storage. Can include or exclude 'vault/' prefix.

Example:vault/documents/2024/invoice.pdf
filenamestring

Optional filename for the Content-Disposition header.

Example:invoice.pdf
fkstring required

Team file key for proxy/download access to team files. This key is returned in the user data response (GET /users/me) as the fileKey field. It is team-scoped and deterministic - all members of the same team share the same file key. Use this key to authenticate file access requests.

Example:a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

Response

File content

Changes

No recorded changes to this operation across all 1 revision of this API.