> ## 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.

# File passages

> What an assistant reads from a ready file: its passages in order, 20 a page.

Returns a ready file's passages, in order, 20 a page: exactly what an assistant's search can hand over from it. Use it to check how a file was read. Each passage of a recent file starts with the file's name and the headings it sits under.

## Path parameters

**fileId** `string` *required*

UUID of a ready file.

## Query parameters

**page** `number` (default: 1)

The page, from 1. A page past the end is empty.

## Request

```bash theme={null}
curl "https://api.verbeo.ai/v1/knowledge-base/files/c4ff0c9c-4b3b-4a94-a86e-3d3b64088ae0/passages?page=1" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

`200 OK`. `total` is the file's passages: there are more pages while `page × page_size` is below it.

```json theme={null}
{
  "success": true,
  "data": {
    "file_id": "c4ff0c9c-4b3b-4a94-a86e-3d3b64088ae0",
    "page": 1,
    "page_size": 20,
    "total": 12,
    "passages": [
      { "index": 0, "content": "prices.pdf › Cleaning\n\nA deep cleaning costs ₹1,499." },
      { "index": 1, "content": "prices.pdf › Whitening\n\nWhitening costs ₹4,999 for both jaws." }
    ]
  }
}
```

## Errors

| Code | Status | When |
| - | - | - |
| `CONFLICT` | 409 | `This file is not ready yet.` |
| `VALIDATION_FAILED` | 422 | `page: must be at least 1`. |
| `NOT_FOUND` | 404 | No such file: `File not found`. |


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