Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
file
string | null

The file to upload.

Response

File uploaded successfully.

owner_id
string
required

The logged in user's email ID.

name
string
required

Name of the uploaded file.

size
integer
required

Size of the file in bytes.

id
string<uuid> | null

Unique ID for the file.

bucket_name
string | null

Name of the S3 bucket that stores this file.

source_url
string | null

URL from which the file was originally uploaded.

s3_url
string | null

S3 URL of the uploaded file.

access_count
integer
default:0

Number of times you accessed the file.

created_at
string<date-time>

Timestamp of the upload.

accessed_at
string<date-time> | null

Timestamp when the file was last accessed.