Inspect

Get memory

Read one memory by id, including its canonical body, lifecycle state, and every scope it is placed in. Archived memories are returned.

Base URL
GET
/api/v2/memories/{memory_id}

Read one memory by id, including its canonical body, lifecycle state, and every scope it is placed in. Archived memories are returned.

Authorization

bearerAuth memories:read
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: memories:read

Path Parameters

memory_id*string

Response Body

Memory details

application/json
  1. response
data*
Example Request
curl -X GET 'https://app.inspect.com/api/v2/memories/Kq8vN2xLm4pR7tYc3hWzA'
Example Response
{  "data": {    "memory": {      "id": "Kq8vN2xLm4pR7tYc3hWzA",      "title": "Run oxfmt before committing",      "content": "Format changed files with `bun oxfmt` before every commit. Do not use prettier in this repository.",      "description": "Use oxfmt, not prettier, to format files before committing in acme/web.",      "memory_type": "directive",      "archived_at": null,      "archived_reason": null    },    "scopes": [      {        "type": "personal",        "id": "Xk3pQ9mZr7Lw2NbT5vYc8HdJ4sFa6GeR"      }    ]  }}