Skip to content

GET   /files/{table_name}/{id}/{file_name}

Download file

Download a specific file.

Business Rules

  • Access is logged
  • Downloads counted
  • Streams large files
  • Supports range requests

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

table_name   path string

Entity type

id   path string

Entity ID

file_name   path string

File name

Optional Parameters

Click here to view an exhaustive list of all available parameters
additionalKey   query string

An additional key to categorize or organize your file uploads against this entity. ie additional_documents, photos, etc... defaults to __DEFAULT__

download   query boolean

Force download vs inline display

Try it out

Loading...

Output:

Responses

Description

File content

Route Source Code

Check out the source code for this route entrypoint here: /files/[table_name]/[id]/[file_name]/route.ts

Or the swagger.yaml spec this documentation was generated from: /files/swagger.yaml