Skip to main content
POST
Upload a file in x-form encoded HTTP request

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

The body of request in multipart/form-data format, containing the file content, file name and mime-type.

file
file
required

A file content in binary format.

filename
string

Explicit filename override. If omitted, use multipart filename.

Maximum string length: 1024
Example:

"document.pdf"

content_type
string

Optional MIME type of the uploaded file.

Maximum string length: 140
caption
string

Optional caption text to send together with the file.

Maximum string length: 2000
Example:

"Here is the document you requested."

Response

Success

status
enum<string>
required
Available options:
ok,
error
Example:

"ok"

data
object
required