docs
UAEN
API Reference

Get File Metadata

Get file metadata.

GET/api/v1/files/{file_id}

Authorizations

X-API-Keystringheaderrequired
Your API key for authentication

Path Parameters

file_idintegerpathrequired
File ID

Cookies

wos-sessionstringcookie
Session cookie
access_tokenstringcookie
Access token cookie
datalab_active_teamstringcookie
Active team cookie

Response

Successful Response
Get File Metadata
import requests

url = "https://www.datalab.to/api/v1/files/{file_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)
200Success
{"id": "file_abc123", "filename": "doc.pdf", "size": 1048576}