# List Chunks of a Knowledge Document (paged)

`GET /api/knowledge/documents/hub-documents/{document_id}/chunks`

### Overview
Pages through every indexed chunk of the active, `processed` version, ordered by `chunk_index`. The detail endpoint only embeds the first 50 (`chunk_total` there gives the full count). Same access as the detail view. Active when `KNOWLEDGE_BACKEND=parser`.

### Query Parameters
- **`offset`** *(int >= 0, default 0)*; **`limit`** *(1-100, default 50)*. `offset >= total` returns `items: []`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `document_id` | path | string | yes | Unique UUID of the knowledge document stored in the vector database. |
| `offset` | query | integer | no | Number of initial records to skip for pagination. |
| `limit` | query | integer | no | Maximum number of records to return in the paginated response (1 to 100). |

## Responses

### 200 — A page of chunks

### 400 — Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

### 401 — Unauthorized - Missing, invalid, or expired JWT Bearer token.

### 403 — Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

### 404 — Not found/not visible, no processed version, or hub backend

### 410 — Share link expired

### 422 — `offset`/`limit` out of range

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

### 503 — Chunk store temporarily unavailable

## Example

```bash
curl -X GET "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/chunks" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
