Skip to main content
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>'
{
  "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

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Query Parameters

scope
string

Hard isolation boundary for graph traversal.

Maximum string length: 200

Response

200 - application/json

Memory graph data.

nodes
object[]
required
meta
object
required