> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verbeo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List files

> Every file of a knowledge base, newest first, with its status and progress.

Returns every file of a knowledge base, newest first, as [file objects](https://docs.verbeo.ai/api-reference/knowledge-bases/overview.md#the-file-object). A knowledge base has at most 100 files (10 on Free), so they come in one page. A replacement on its way is listed beside the file it replaces.

## Path parameters

**id** `string` *required*

UUID of the knowledge base.

## Request

```bash theme={null}
curl "https://api.verbeo.ai/v1/knowledge-base/5df09066-0842-4c92-8ef0-6cf2ff6d7455/files" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

`200 OK`

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "c4ff0c9c-4b3b-4a94-a86e-3d3b64088ae0",
      "store_id": "5df09066-0842-4c92-8ef0-6cf2ff6d7455",
      "display_name": "prices.pdf",
      "file_type": "application/pdf",
      "file_size": 371989,
      "status": "ready",
      "error_code": null,
      "error_message": null,
      "chunk_count": 12,
      "chunks_saved": 12,
      "…": "every field of the file object"
    }
  ],
  "pagination": { "total": 1, "count": 1, "next_cursor": null }
}
```

## Errors

| Code | Status | When |
| - | - | - |
| `NOT_FOUND` | 404 | No such knowledge base: `Knowledge base not found`. |
| `VALIDATION_FAILED` | 422 | `id` is not a UUID. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.