Skip to main content
POST
Upload file

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Body

application/json
file_name
string

The name of the file to be uploaded.

file_content
string<byte>

Base64 encoded content of the file.

user_id
string

The user ID associated with the file. Required if project_id is not provided.

project_id
string

The project ID associated with the file. Required if user_id is not provided.

Response

File uploaded successfully

success
boolean
file_name
string

The name of the uploaded file.