List Chunks
AI-generatedSummary
Retrieve a paginated list of chunks for a specified document within a knowledge base in DocRouter.ai.
Inputs
- Knowledge Base ID (required) — The unique identifier of the knowledge base containing the document.
- Document ID (required) — The unique identifier of the document whose chunks you want to list.
- Chunks Limit — The maximum number of chunks to return, between 1 and 1000. Defaults to 100.
- Chunks Skip — The number of chunks to skip for pagination purposes. Defaults to 0.
Output shape
a single JSON object representing the list of chunks retrieved from the specified document in the knowledge base
The returned data corresponds to the API response from DocRouter.ai's /chunks endpoint for the given knowledge base and document. Pagination is supported via 'Chunks Limit' and 'Chunks Skip' parameters. In case of error and if 'Continue On Fail' is enabled, the output contains an error object instead.
Examples
Example 1: List up to 50 chunks from a document with ID 'doc123' in knowledge base 'kb456', skipping the first 10 chunks
kbId='kb456', documentId='doc123', chunksLimit=50, chunksSkip=10