---
title: "Block-level chunks for a context, ordered by chunk_index"
method: GET
path: "/api/contexts/{id}/chunks"
tags: ["Contexts"]
---

# Block-level chunks for a context, ordered by chunk_index

`GET /api/contexts/{id}/chunks`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/contexts/{id}/chunks`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Path parameters

- `id` integer, required

## Response `200`

Ordered chunk rows.

- object[]
  - `id` integer
  - `chunk_index` integer
  - `heading_path` string, nullable
  - `content` string
  - `metadata` object: Page/sheet/table anchors for document-mode chunks.
  - `has_embedding` boolean

## Other responses

- `400`: Invalid id.
- `401`: Missing or invalid credentials.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
