# List files in store List all files in a knowledge store with optional filtering and pagination. Returns a paginated list of files in the specified store. You can filter by processing status and search by filename. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`store_id`** string required The unique identifier of the vector store. #### Query Parameters **`status`** string optional Filter by processing status. Allowed values: `pending`, `processing`, `completed`, `failed`. **`search`** string optional Search by filename (case-insensitive substring match). **`skip`** integer optional · Defaults to `0` Number of items to skip for pagination. **`limit`** integer optional · Defaults to `20` Maximum number of items to return (1-100). ## Returns A paginated list of file objects with processing details. Request ```bash cURL curl -s "https://api.aitronos.com/v1/organizations/org_xyz789/stores/vs_abc123/files?status=completed&limit=10" \ -H "Authorization: Bearer $ACCESS_TOKEN" | python3 -m json.tool ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.knowledge.list_files( organization_id="org_xyz789", store_id="vs_abc123", status="completed", limit=10, ) print(result) ``` ```python Python import requests org_id = "org_xyz789" store_id = "vs_abc123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/stores/{store_id}/files" headers = { "Authorization": "Bearer YOUR_ACCESS_TOKEN", } params = { "status": "completed", "limit": 10, } response = requests.get(url, headers=headers, params=params) print(response.json()) ``` ```javascript JavaScript const orgId = "org_xyz789"; const storeId = "vs_abc123"; const params = new URLSearchParams({ status: "completed", limit: "10" }); const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/stores/${storeId}/files?${params}`, { headers: { Authorization: `Bearer ${accessToken}`, }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "items": [ { "file_id": "file_abc123def456", "name": "document.pdf", "size": 1048576, "mime_type": "application/pdf", "relative_path": "reports/2025", "status": "completed", "progress_percent": 100, "current_step": null, "error_message": null, "created_at": "2025-06-15T10:00:00Z", "processed_at": "2025-06-15T10:02:30Z" } ], "total": 1, "skip": 0, "limit": 10, "has_more": false } ``` ```json 404 Error { "success": false, "error": { "code": "VECTOR_STORE_NOT_FOUND", "message": "We couldn't find the requested resource.", "system_message": "Vector store not found", "type": "client_error", "status": 404, "details": { "store_id": "vs_abc123", "organization_id": "org_xyz789" }, "trace_id": "abc-123-def", "timestamp": "2025-06-15T10:00:00Z" } } ``` ## Related Resources - [Upload File](/docs/api-reference/knowledge/upload-file) - [Get Upload URL](/docs/api-reference/knowledge/upload-url) - [Register Upload](/docs/api-reference/knowledge/register-upload) - [Get File](/docs/api-reference/knowledge/get-file) - [Delete File](/docs/api-reference/knowledge/delete-file) - [Bulk Remove Files](/docs/api-reference/knowledge/bulk-remove) - [Processing Status](/docs/api-reference/knowledge/processing-status) - [Processing Logs](/docs/api-reference/knowledge/processing-logs) - [Retry Processing](/docs/api-reference/knowledge/retry-processing) - [File Config](/docs/api-reference/knowledge/file-config) - [Storage Usage](/docs/api-reference/knowledge/storage-usage)