Skip to main content
POST
Upload a file
If you’d like us to support a filetype that is not included, please get in touch with us at support@kili.so

Headers

Authorization
string<bearer>
required

Bearer token for authentication

Body

application/json
content_type
enum<string>
required

Content type of the image

Available options:
application/pdf,
image/tiff,
text/plain,
text/csv,
image/png,
image/jpeg,
image/jpg,
image/gif,
image/webp
file_base64
string<byte> | null
required

Base64-encoded file data

file_url
string<uri> | null

URL of where the file can be downloaded from

Response

File uploaded successfully

file_id
string
required

ID of the uploaded file