Query Parameters
Required range: 
x < 100Available options: 
uploading, ready import Spitch from 'spitch';
const client = new Spitch();
// Automatically fetches more pages as needed.
for await (const file of client.files.list()) {
  console.log(file.file_id);
}{
  "items": [
    {
      "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "uploading",
      "original_name": "<string>",
      "size_bytes": 123,
      "content_type": "<string>",
      "category": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "uploaded_by": "<string>"
    }
  ],
  "next_cursor": "<string>"
}Get a paginated list of files for the authenticated organization.
Args: identity: Authentication identity containing org_id and user_id limit: Maximum number of files to return (max 100) status: Optional filter by file status (processing, ready, etc.) cursor: Optional pagination cursor for getting next page db: Database session
Returns: ListFilesResponse: Paginated list of files with metadata
Raises: HTTPException: 400 if cursor is invalid
import Spitch from 'spitch';
const client = new Spitch();
// Automatically fetches more pages as needed.
for await (const file of client.files.list()) {
  console.log(file.file_id);
}{
  "items": [
    {
      "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "uploading",
      "original_name": "<string>",
      "size_bytes": 123,
      "content_type": "<string>",
      "category": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "uploaded_by": "<string>"
    }
  ],
  "next_cursor": "<string>"
}x < 100uploading, ready Was this page helpful?