Get metadata for a specific file.
Parameters
file_id: str
The unique identifier of the file.
Returns
Get file metadata
import os
from deeptable import DeepTable
client = DeepTable(
api_key=os.environ.get("DEEPTABLE_API_KEY"), # This is the default and can be omitted
)
file = client.files.retrieve(
"file_01abc2def3ghjkmnpqrs4uvwxy",
)
print(file.id){
"id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"created_at": "2024-01-15T10:30:00Z",
"file_name": "financial_report.xlsx",
"size": 1048576,
"object": "file"
}Returns Examples
{
"id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"created_at": "2024-01-15T10:30:00Z",
"file_name": "financial_report.xlsx",
"size": 1048576,
"object": "file"
}