POST
/
documents
/
v1
/
files
curl --request POST \
  --url https://api.tensorlake.ai/documents/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'labels={}'
{
  "id": "<string>"
}

Upload a file to Tensorlake for document parsing or structured extraction.

This API call returns a managed File object, of the form tensorlake-<file_id>.

Note: The file must be less than 10MB in size. For larger files, use the Large File Upload API to upload the file in chunks.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json
File uploaded successfully

The response is of type object.