Memory

Read a memory file

Changed on

Returns one file's whole text and its revision_id. Send the revision_id back as expected_revision_id on writeMemoryFile to change the file only if nobody changed it since. Paths are matched in any case and with or without .md.

<sub>Scope: memory:read</sub>

get/v3/organizations/{orgId}/memory/file

Request

  • Base URL
    https://api.reasonmachines.com
  • URL
    https://api.reasonmachines.com/v3/organizations/{orgId}/memory/file
  • Auth
    HTTP bearer

Query parameters

scope'personal' | 'team' required

personal: the memory of the person the API key or OAuth grant belongs to, private to them. team: the Workspace's shared team memory, which every member's Sessions read.

pathstring required

The file's path within the scope: MEMORY.md (the index) or a note such as web-app.md. A name without an extension gets .md, and paths are lower case, so Web-App and web-app.md are one note. Personal notes may sit in up to three folders (projects/web-app.md); team notes sit at the top or in a place folder such as reasons/<key>/. A memory:/ or team:/ prefix is accepted and ignored.

Response

The file.

scope'personal' | 'team'

personal: the memory of the person the API key or OAuth grant belongs to, private to them. team: the Workspace's shared team memory, which every member's Sessions read.

Changes