Skip to main content

/api/v1/upload

caution

This endpoint requires authentication using an API key.

POST: upload file

Headers

  • Content-Type: multipart/form-data
  • Authentication: API-KEY-HERE

Body

To upload more than one file, append multiple file fields with a file.

FieldTypeMultipleRequiredDescription
fileBlobThe file(s) you want to upload
visiblebooleanVisibility status
namestringA custom file name*
passwordstringFile password*

* The following fields are ignored if multiple files are provided

200 (OK)

FieldTypeDescription
urlstringThe url of the first uploaded item
filesRecord<string, string>Object of uploaded items (original filename, upload url)
{
"url": "http://cdn.ijskoud.dev/files/5G48qa0Cr2Xl.png",
"files": {
"screenshot.png": "http://cdn.ijskoud.dev/files/5G48qa0Cr2Xl.png"
}
}