Knowledge Bases V2

Get Document Chunks

Get all chunks for a specific document.

Returns all chunks for the specified document ordered by chunk_order_index. Each chunk includes:

  • Chunk ID and order index
  • Content text
  • Token count
  • File path (if available)
get/knowledge_bases/v2/{kb_id}/documents/{doc_id}/chunks

Path parameters

kb_idinteger required
doc_idinteger required

Response

Successful Response

document_idinteger required
document_public_idstring required
document_namestring required
versioninteger required
total_chunksinteger required

Changes

No recorded changes to this endpoint across all 28 revisions of this API.