API reference · 7 endpoints
Documents
List, inspect, update, and reprocess the documents behind retained memories.
- GETGet chunk details
- GETList documents
- GETGet document details
- PATCHUpdate document
- DELETEDelete a document
- GETList document chunks
- POSTReprocess document
/v1/default/chunks/{chunk_id}Get chunk details
Get a specific chunk by its ID
Parameters
chunk_idstringpathrequired/v1/default/namespaces/{namespace_id}/documentsList documents
List documents with pagination and optional search. Documents are the source content from which memory units are extracted.
Parameters
namespace_idstringpathrequiredqstring | nullqueryCase-insensitive substring filter on document ID (e.g. 'report' matches 'report-2024')
tagsstring[]queryFilter documents by tags
tags_matchstringqueryHow to match tags: 'any', 'all', 'any_strict', 'all_strict'
limitintegerqueryoffsetintegerquery/v1/default/namespaces/{namespace_id}/documents/{document_id}Get document details
Get a specific document including its original text
Parameters
namespace_idstringpathrequireddocument_idstringpathrequired/v1/default/namespaces/{namespace_id}/documents/{document_id}Update document
Update mutable fields on a document without re-processing its content.
Tags (tags): Propagated to all associated memory units. Observations derived from those units are invalidated and queued for re-consolidation under the new tags. Co-source memories from other documents that shared those observations are also reset.
At least one field must be provided.
Parameters
namespace_idstringpathrequireddocument_idstringpathrequiredRequest body · application/json
tagsstring[]New tags for the document and its memory units. Triggers observation invalidation and re-consolidation.
/v1/default/namespaces/{namespace_id}/documents/{document_id}Delete a document
Delete a document and all its associated memory units and links.
This will cascade delete:
- The document itself
- All memory units extracted from this document
- All links (temporal, semantic, entity) associated with those memory units
This operation cannot be undone.
Parameters
namespace_idstringpathrequireddocument_idstringpathrequired/v1/default/namespaces/{namespace_id}/documents/{document_id}/chunksList document chunks
List all chunks for a given document, ordered by chunk index.
Parameters
namespace_idstringpathrequireddocument_idstringpathrequiredlimitintegerqueryMaximum number of chunks to return
offsetintegerqueryOffset for pagination
/v1/default/namespaces/{namespace_id}/documents/{document_id}/reprocessReprocess document
Re-run the retain pipeline on an existing document without changing its content. This deletes the existing memory units and re-extracts facts using the current engine configuration. Useful when the LLM model, chunking strategy, or extraction settings have changed.
Parameters
namespace_idstringpathrequireddocument_idstringpathrequired