Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

File to create

fileName
string
required

Name of the file, including its extension

Example:

"contract.pdf"

mimeType
enum<string>
required

MIME type of the file to upload

Available options:
application/pdf,
image/jpeg,
image/png,
image/gif,
image/webp,
video/mp4,
video/webm,
video/quicktime,
video/mov,
video/mpeg,
video/mpg,
video/avi,
audio/mpeg,
audio/mp3,
audio/wav,
audio/ogg,
audio/m4a,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/msword,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.ms-powerpoint,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-excel,
text/html
Example:

"application/pdf"

size
integer

File size in bytes. Validated against the per-type upload limit: 50MB for images and audio, 150MB for office documents and HTML, 500MB for PDFs, 10GB for videos.

Required range: x >= 1
Example:

24576

Response

File created

data
object