Supermemory - Growsales AI icon

Supermemory - Growsales AI

Interact with Supermemory — AI-powered memory, document management, and semantic search

Actions22

Document → Get Chunks

AI-generated

Summary

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

Links

Discussion