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

# Preview Chunks

> List the chunks extracted from a dataset

Returns the chunks produced when the dataset was processed. Useful for previewing how a document was split, debugging unexpected search results, or auditing chunk content.

## Request

```bash theme={null}
GET https://api.pathors.com/v1/projects/{projectId}/knowledgebases/{knowledgebaseId}/datasets/{datasetId}/chunks
```

### Path Parameters

<ParamField path="projectId" type="string" required>The project ID</ParamField>
<ParamField path="knowledgebaseId" type="string" required>The knowledgebase containing the dataset</ParamField>
<ParamField path="datasetId" type="string" required>The dataset to preview</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token using your developer key
</ParamField>

## Response

Returns chunks in their original document order.

<ResponseField name="id" type="string">Unique identifier for the chunk</ResponseField>
<ResponseField name="content" type="string">Chunk text content (post-processing, not raw file content)</ResponseField>
<ResponseField name="contentLength" type="number">Length of the chunk content in characters</ResponseField>

<ResponseField name="isEnabled" type="boolean">
  Whether the chunk participates in search. Disabled chunks are excluded from query results.
</ResponseField>

### Example

```bash theme={null}
curl https://api.pathors.com/v1/projects/{projectId}/knowledgebases/kb_abc123/datasets/dataset_xyz789/chunks \
  -H "Authorization: Bearer dk_your_key"
```

```json theme={null}
[
  {
    "id": "chunk_abc123",
    "content": "This is the first chunk of text extracted from the document...",
    "contentLength": 127,
    "isEnabled": true
  }
]
```

The dataset must belong to the specified knowledgebase — cross-knowledgebase access returns `403`.
