File Management

Download a file by ID

get

Downloads a file from the storage system using its unique identifier. The file is returned as a binary stream with appropriate content headers. This endpoint is typically used to retrieve files that were previously uploaded and associated with records through FileField columns in schemas.

Path parameters
fileIdstring · uuidRequired

Unique identifier (UUID) of the file to download

Example: d290f1ee-6c54-4b01-90e6-d701748f0851
Responses
200

File downloaded successfully - Returns the file as a binary stream

application/octet-stream
Responsestring · binary
get
/api/file/download/{fileId}

Get storage usage information

get

Retrieves information about the file storage usage for the current workspace. Returns the maximum allowed storage capacity and the current amount of storage being used. Use this endpoint to monitor storage consumption and plan for capacity needs.

Responses
200

Storage information retrieved successfully

application/json
get
/api/file/storage-info

Delete a file

delete

Permanently deletes a file from the storage system. This operation cannot be undone.

Important:

  • The file will be removed from storage immediately

  • Any references to this file in data records will become broken

  • Consider updating or clearing FileField values that reference this file before deletion

Path parameters
fileIdstring · uuidRequired

Unique identifier (UUID) of the file to delete

Example: d290f1ee-6c54-4b01-90e6-d701748f0851
Responses
200

File deleted successfully

application/json
Responseobject
delete
/api/file/delete/{fileId}

Upload files

post

Uploads one or more files to the storage system. Each file must be associated with a unique identifier that will be used to reference it later (typically in a FileField column).

Request format: The request must be a multipart/form-data with paired id and file parts:

  • id: The UUID to associate with the file (can be repeated for multiple files)

  • file: The binary file content (can be repeated for multiple files)

The number of id parts must match the number of file parts exactly.

Example multipart request:

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

------WebKitFormBoundary
Content-Disposition: form-data; name="id"

d290f1ee-6c54-4b01-90e6-d701748f0851
------WebKitFormBoundary
Content-Disposition: form-data; name="file"; filename="document.pdf"
Content-Type: application/pdf

[binary file content]
------WebKitFormBoundary--
Body
objectOptional
Responses
200

Files uploaded successfully

application/json
Responseobject
post
/api/file/upload

Last updated

Was this helpful?