Chunks
List Chunks
Changed onReturns a paginated list of chunks within a document, optionally filtered by keyword or indexing status.
get/datasets/{dataset_id}/documents/{document_id}/segments
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/datasets/{dataset_id}/documents/{document_id}/segments
- AuthHTTP bearer
Path parameters
dataset_idstring uuid required
Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.
document_idstring uuid required
Document ID. Obtain it from List Documents.
Query parameters
pageinteger
Page number.
limitinteger
Number of items per page. Server caps at 100.
statusstring[]
Filter chunks by indexing status, e.g. completed, indexing, error.
keywordstring
Search keyword.
Response
List of chunks.
Changes
- warning
for the
queryrequest parameterlimit, the min was set to1.00 - warning
for the
queryrequest parameterpage, the min was set to1.00 - info
added the non-success response with the status
- warning