Skip to main content
POST
Import a file

Authorizations

Authorization
string
header
required

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

Body

application/json
url
string<uri>

Public http(s) URL the server downloads and re-hosts. Mutually exclusive with content_base64. Max 10485760 bytes.

content_base64
string

Base64-encoded file bytes, for uploads that have no public URL. Mutually exclusive with url. Max 1048576 decoded bytes; use url above that.

Minimum string length: 1
file_name
string

Overrides the name derived from the URL. Its extension is used for the stored object key.

Required string length: 1 - 255
content_type
string

Required with content_base64. With url it overrides the server's Content-Type. One of: application/msword, application/pdf, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/gif, image/jpeg, image/png, image/webp, text/csv, text/plain.

Minimum string length: 1

Response

Successful response

file_url
string
required
content_type
string
required
size
number
required
original_file_name
string | null
required