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>.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required
labels
object | null

Response

200
application/json
File uploaded successfully
id
string
required