## List files `files.list(FileListParams**kwargs) -> SyncCursorIDPage[File]` **get** `/v1/files` List all files uploaded by the current user. ### Parameters - `after: Optional[str]` A cursor for pagination. Use the `last_id` from a previous response to fetch the next page. - `limit: Optional[int]` Maximum number of files to return. ### Returns - `class File: …` Response representing an uploaded file. This is returned from POST (upload), GET (retrieve), and list endpoints. - `id: str` The unique identifier for this file. - `content_type: str` The MIME type of the file. - `created_at: datetime` The timestamp when the file was uploaded. - `file_name: str` The original filename of the uploaded file. - `object: Literal["file"]` The object type, which is always 'file'. - `"file"` - `size: int` The size of the file in bytes. ### Example ```python 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) ``` #### Response ```json { "data": [ { "id": "file_01kfxgjd94fn9stqm414vjb0s8", "content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "created_at": "2024-01-15T10:30:00Z", "file_name": "financial_report.xlsx", "object": "file", "size": 1048576 } ], "has_more": false, "object": "list", "first_id": "file_01kfxgjd94fn9stqm414vjb0s8", "last_id": "file_01kfxgjd94fn9stqm414vjb0s8" } ```