Actions22
- Chat Actions
- Container Tag Actions
- Conversation Actions
- Document Actions
- Memory Actions
- Profile Actions
- Search Actions
Document → Get Chunks
AI-generatedSummary
Retrieve document chunks
Inputs
- chunksSource — Select source of chunks: 'byId' for a single document or 'allDocuments' for all documents in account.
- documentId (required) — ID of the document to retrieve chunks for (required when chunksSource is 'byId').
- containerTag — Container tag name or ID to limit chunk retrieval (used when chunksSource is 'allDocuments').
- maxDocuments — Maximum number of documents to fetch chunks for (max 200).
Output shape
an array of chunk objects
Each chunk includes metadata such as document ID, title, and chunk content; the result is returned directly with no pagination wrapper.
Examples
Example 1: Get chunks for a specific document
chunksSource=byId&documentId=doc_123
Example 2: Get chunks for all documents in a container tag
chunksSource=allDocuments&containerTag=sales&maxDocuments=50
Example 3: Get chunks for all documents without size limit
chunksSource=allDocuments&maxDocuments=200
