Skip to main content
POST
/
v1
/
files
/
upload
Upload a file
curl --request POST \
  --url https://api.devic.ai/v1/files/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "name": "<string>",
  "downloadUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Use JWT token for 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