List all files uploaded by the current user.
Parameters
after: Optional[str]
Unique identifier for a file.
limit: Optional[int]
Maximum number of files to return.
maximum100
minimum1
Returns
List files
import os
from deeptable import DeepTable
client = DeepTable(
api_key=os.environ.get("DEEPTABLE_API_KEY"), # This is the default and can be omitted
)
page = client.files.list()
page = page.data[0]
print(page.id){
"data": [
{
"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"
}
],
"has_more": false,
"first_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"last_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"object": "list"
}Returns Examples
{
"data": [
{
"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"
}
],
"has_more": false,
"first_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"last_id": "file_01abc2def3ghjkmnpqrs4uvwxy",
"object": "list"
}