FileServer API (1.0.0)

Download OpenAPI specification:Download

A simple file server API that provides two main functionalities:

  1. Uploading a file directly via multipart form-data (requires authentication).
  2. Providing a URL to a file, which the server downloads and stores locally (requires authentication).
  3. Accessing files is public and does not require authentication.

Upload a file directly

Upload a file via multipart/form-data. The server will store it with a unique filename. This endpoint requires a valid Firebase ID token in the Authorization header.

Authorizations:
firebaseToken
Request Body schema: multipart/form-data
required
file
required
string <binary>

Responses

Response samples

Download file from external URL

Provide a URL, and the server will download the file, store it, and return a link. This endpoint requires a valid Firebase ID token in the Authorization header.

Authorizations:
firebaseToken
Request Body schema: application/json
required
URL
required
string <uri>

The URL of the file to download

Name
string

Optional base name for the file (if omitted, a UUID is used)

Extension
string

Optional file extension (if omitted, extracted from URL)

Responses

Request samples

Content type
application/json
{}

Response samples