GET
/
documents
/
v2
/
files
/
{file_id}
/
metadata
cURL
curl --request GET \
  --url https://api.tensorlake.ai/documents/v2/files/{file_id}/metadata \
  --header 'Authorization: Bearer <token>'
{
  "file_id": "file_12345",
  "file_name": "example.pdf",
  "mime_type": "application/pdf",
  "file_size": 100000,
  "checksum_sha256": "d3242c5c1d369d233fa65183bdd4c486eba109ceb13490ed291384eaffbe743b",
  "created_at": "2023-10-01T12:00:00Z",
  "labels": {
    "priority": "high",
    "source": "email"
  }
}

Get the metadata of a specific file in the Tensorlake Cloud. This endpoint allows you to retrieve detailed information about a file, including its ID, name, size, type, and any associated labels.

Authorizations

Authorization
string
header
required

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

Path Parameters

file_id
string
required

The public ID of the file to retrieve metadata for the file. Only files created with the V2 API will be returned.

Response

200
application/json

Information about the uploaded file

The response is of type object.