Skip to main content
POST
Upload a file

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Body

multipart/form-data
file
file
required

The file to upload (max 25MB)

Response

File uploaded successfully

name
string

Uploaded file name

downloadUrl
string

Shareable URL to download the uploaded file

fileType
enum<string>

Detected file category

Available options:
image,
document,
audio,
video,
other