HTTP API

Memory

4 routes your API key can call. Each says who may call it; every example assumes KEY is your API key. What only the dashboard does (signing in, making API keys, connecting accounts) isn't listed here: it's in the full OpenAPI spec.

POST/v1/workspaces/{wid}/memory

Remember text in the workspace's own Supermemory account (Memory, beta)

People, API keys and the sandbox's own task token

scope workspace keeps it for every task; scope task keeps it with one task (task; a sandbox's task token may leave task out for its own). Annex picks the Supermemory namespace from the workspace and task (annex:<wid> or annex:<wid>:<tid>); no request can name one. Members, API keys and task tokens (their own task and workspace only; another task is 404). 422 no_memory "Connect Supermemory in Connections to use memory." without a memory connection; 422 memory_rejected if Supermemory refuses the key (401/403 there: revoked, read-only or limited to other namespaces); 503 provider_unavailable if it can't be reached.

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id

Body

  • textstringrequired

    16 KiB at most

  • scope"workspace" | "task"required
  • taskstring

    The task (tsk_…) for scope task

  • tagsstring[]

Answer · 201

  • memoryMemoryrequired
    • idstring

      Supermemory's document id, for DELETE …/memory/{id}

    • scope"workspace" | "task"
    • taskstring | null
    • tagsstring[]
    • bystring

      Who remembered it: usr_… (a person), key_… (an API key) or the task token's sbx_…

Terminal
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/memory' \
  -H 'Authorization: Bearer anx_live_…' \
  -H 'Content-Type: application/json' \
  -d '{"text":"…","scope":"workspace"}'
DELETE/v1/workspaces/{wid}/memory/{id}

Forget a memory, by the id POST …/memory returned, in its scope only

People, API keys and the sandbox's own task token

Supermemory deletes inside one namespace, so an id from another scope is 404. Ids from a search may name a memory Supermemory learned rather than the text you sent; those aren't deleted here. A signed-in person may forget any memory; an API key or a task token only one it remembered itself (another's, a saved journal note's, or one from before writers were recorded, is 404).

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id
idInpathTypestringAbout
scopeInqueryType"workspace" | "task"About
task?InqueryTypestringAbout

Answer · 204

Forgotten

Terminal
curl -X DELETE 'https://annex.eversonder.com/v1/workspaces/wsp_…/memory/id' \
  -H 'Authorization: Bearer anx_live_…'
GET/v1/workspaces/{wid}/memory/settings

The workspace's memory settings (members and API keys)

People and API keys

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id

Answer · 200

  • memory_settingsobjectrequired
    • save_journalboolean
Terminal
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/memory/settings' \
  -H 'Authorization: Bearer anx_live_…'