Skip to main content
Return the text chunks a document was parsed into — useful to inspect retrieval granularity or trace auto-extracted memory back to its source.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...>. Minimum role: viewer.

Path parameters

string
required
Workspace id.
string
required
Document id.

Response

The response is an array; each element is a chunk:
string
Chunk id (chk_...).
string
Owning document id.
string
Owning KB id.
string
Owning workspace id.
integer
Order index of the chunk within the document.
string
Chunk text.

Example