Skip to main content

Endpoint

GET /v1/memory

Query Parameters

ParameterTypeDescription
typestringFilter by memory type
visibilitystringFilter by visibility: private or share
pinnedbooleanFilter by pin status
historybooleantrue to include all versions (default: latest only)
minImportancenumberMinimum importance (0.0–1.0)
sortBystringcreatedAt, updatedAt, or importance (default: createdAt desc)
limitnumberResults per page (default 50, max 100)
offsetnumberOffset for traditional pagination
cursorstringCursor for cursor-based pagination

Response (200)

{
  "memories": [
    {
      "id": "...",
      "type": "semantic",
      "key": "facts/project-alpha",
      "version": 2,
      "sizeBytes": 48,
      "pinned": true,
      "importance": 0.8,
      "metadata": { "tags": ["project"] },
      "visibility": "private",
      "createdAt": "...",
      "updatedAt": "..."
    }
  ],
  "limit": 20,
  "nextCursor": "base64...",
  "hasMore": true
}
total is only included in offset-based pagination responses (not cursor-based) to avoid expensive count queries on large datasets.

Cursor Pagination

Pass nextCursor from the response as cursor in the next request for stable pagination:
# Page 1
GET /v1/memory?limit=20

# Page 2
GET /v1/memory?limit=20&cursor=<nextCursor>