curl --request GET \
--url https://api.memcontext.in/api/memories \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"memories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"version": 123,
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"hasMore": true
}List memories
Paginated list of current (non-deleted) memories. Supports filtering by category, project, and text search. Categories and projects accept comma-separated values for multi-filter queries.
curl --request GET \
--url https://api.memcontext.in/api/memories \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"memories": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"version": 123,
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"hasMore": true
}Authorizations
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Query Parameters
Number of memories to return.
1 <= x <= 100Pagination offset.
x >= 0Comma-separated category filter. Values: preference, fact, decision, context.
Hard isolation boundary. When provided, results come only from that scope. Omit to list only unscoped/global memories.
200Comma-separated project filter within the selected scope. Use __memcontext_no_project__ for memories without a project.
Text search across memory content (case-insensitive substring match).
200Response
Paginated memory list.
Hide child attributes
Hide child attributes
Total number of memories matching the filters.
Whether more results exist beyond the current page.
