## List files `file.list(FileListParams**kwargs) -> FileListResponse` **get** `/v1/files` Returns a paginated list of files in your workspace. Use `offset` and `limit` to paginate through results. See [List endpoints](/using-the-api/list-endpoints/) for more information about pagination. **[Required scope](/using-the-api/scopes/):** `files:read` **[Rate limit category](/using-the-api/rate-limits/):** Search ### Parameters - `limit: Optional[int]` Maximum number of records to return. Defaults to 25, maximum 25. - `offset: Optional[int]` Number of records to skip for pagination. Defaults to 0. ### Returns - `class FileListResponse: …` - `data: List[Data]` Array of file objects for the current page. - `id: str` Unique identifier for the file. - `completed_at: Optional[str]` When the file upload was completed. - `created_at: str` When the file upload session was created. - `expires_at: Optional[str]` When the upload session expires. Null once completed, cancelled, or expired. - `filename: str` Original filename. - `mime_type: str` MIME type of the file. - `size_bytes: int` File size in bytes. - `status: Literal["PENDING", "COMPLETED", "CANCELLED", "EXPIRED"]` Current upload status of the file. - `"PENDING"` - `"COMPLETED"` - `"CANCELLED"` - `"EXPIRED"` - `object: str` The object type, always `"list"`. - `total_count: int` Total number of matching files. ### Example ```python from lightfield import Lightfield client = Lightfield( api_key="My API Key", ) file_list_response = client.file.list() print(file_list_response.data) ``` #### Response ```json { "data": [ { "id": "id", "completedAt": "completedAt", "createdAt": "createdAt", "expiresAt": "expiresAt", "filename": "filename", "mimeType": "mimeType", "sizeBytes": -9007199254740991, "status": "PENDING" } ], "object": "object", "totalCount": 0 } ```