Endpoints
Upload file
Upload a file for schema extraction using a JSON payload. Either file_base64 or file_url must be provided.
POST
/
upload
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
requiredBearer token for authentication
Body
application/json
content_type
enum<string>
requiredContent 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 | null
requiredBase64-encoded file data
file_url
string | null
URL of where the file can be downloaded from
Response
200 - application/json
file_id
string
requiredID of the uploaded file