Get memory graph data
curl --request GET \
--url https://api.memcontext.in/api/memories/graph \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/memories/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories/graph"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"nodes": [
{
"id": "<string>",
"label": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"degree": 123,
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"rootId": "<string>"
}
],
"links": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"type": "<string>",
"derived": true,
"strength": 123
}
],
"meta": {
"totalNodes": 123,
"totalLinks": 123,
"relationLinks": 123,
"derivedLinks": 123
}
}Profiles
Get memory graph data
Returns graph visualization data for the current memory container. The graph only
includes memories inside the selected scope. Omit scope to visualize only unscoped/global memories.
GET
https://api.memcontext.in
/
api
/
memories
/
graph
Get memory graph data
curl --request GET \
--url https://api.memcontext.in/api/memories/graph \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/memories/graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/memories/graph"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"nodes": [
{
"id": "<string>",
"label": "<string>",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"degree": 123,
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"rootId": "<string>"
}
],
"links": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"type": "<string>",
"derived": true,
"strength": 123
}
],
"meta": {
"totalNodes": 123,
"totalLinks": 123,
"relationLinks": 123,
"derivedLinks": 123
}
}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
Hard isolation boundary for graph traversal.
Maximum string length:
200Response
200 - application/json
Memory graph data.
