JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.supermemory.ai/v3/documents/{id}/chunks', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "documentId": "<string>", "chunks": [ { "id": "<string>", "position": 123, "content": "<string>", "type": "<string>", "createdAt": "<string>", "metadata": {} } ], "total": 123 }
Get all chunks for a document, ordered by position
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Document chunks retrieved successfully
Response for document chunks endpoint
The document ID
Ordered list of chunks
Show child attributes
Total number of chunks
Was this page helpful?
Suggestions
Contact support