Skip to main content
POST
/
upload
Upload a file
curl --request POST \
  --url https://api.tile.run/v1/upload \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content_type": "application/pdf",
  "file_base64": "aSDinaTvuI8gbWludGxpZnk=",
  "file_url": "<string>"
}'
{
  "file_id": "<string>"
}
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
  • Option 1
  • Option 2
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