Files
Upload File
Upload a file to the specified storage provider
POST
This endpoint requires authentication and the
uploadFiles permission.
The maximum file size is 10MB.Path Parameters
The storage provider to use. One of:
s3: Amazon S3 storagelocal: Local file storage
Request Headers
The MIME type of the file being uploaded
Must include the filename parameter, e.g.
attachment; filename="example.jpg"Request Body
The request body should contain the raw file data.Response
File’s unique identifier (UUID)
Original filename
URL to access the file
Storage key/path of the file
MIME type of the file
File size in bytes
Storage provider used (s3 or local)
Provider-specific metadata
UUID of the user who uploaded the file
Upload timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Error Responses
Error details when the request fails
Common error cases:
- 400 Bad Request: Invalid provider or missing filename
- 401 Unauthorized: Missing or invalid access token
- 403 Forbidden: Missing required permission
- 413 Payload Too Large: File exceeds size limit
