cURL
Page through chunks in a Knowledge Base. Specify the Knowledge Base ID via
indexId in the request body. Chunks are returned as graph nodes — nodes is the chunk array and total is the total chunk count.
docId filters chunks by document. Required for document-search and audio/video-search KBs; not needed for data-query or image-QA KBs.Authorizations
string
header
required
DashScope API Key, obtained from the API Key page in the console.
Body
application/jsonstring
required
Knowledge Base ID (same as the data.pipelineId field returned by createIndex).
integer
Page number, starting at 1. Defaults to 1.
integer
Chunks per page. Defaults to 20, max 100.
string
Filter by document ID — only return chunks under this document. Required for document-search and audio/video-search knowledge bases; not needed for data-query or image-Q&A knowledge bases. Obtain the document ID from the document list API.