Get memory context
Read the active memory context for a user. Personal memories default to the API key user; pass `user_id` to read another user's context.
Base URL
GET
Read the active memory context for a user. Personal memories default to the API key user; pass user_id to read another user's context.
bearerAuth memories:readheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: memories:read
user_id?stringUser whose personal memories are included. Defaults to the API key user. Ignored when include_personal is false.
Length
1 <= lengthinclude_personal?booleanSet to false to exclude personal memories from the context.
Default
truedirective_limit?integerMaximum number of directive memories to return.
Format
int32Range
1 <= value <= 25Default
20fact_limit?integerMaximum number of fact memories to return.
Format
int32Range
1 <= value <= 100Default
50Active memory context for the requested scopes
application/json- response
data*curl -X GET 'https://app.inspect.com/api/v2/memories/context'Example Response
{ "data": { "scopes": [ { "type": "personal", "id": "Xk3pQ9mZr7Lw2NbT5vYc8HdJ4sFa6GeR" } ], "directives": [ { "id": "Kq8vN2xLm4pR7tYc3hWzA", "title": "Run oxfmt before committing", "description": "Use oxfmt, not prettier, to format files before committing in acme/web.", "content": "Format changed files with `bun oxfmt` before every commit. Do not use prettier in this repository.", "memory_type": "directive", "updated_at": "2026-10-28T15:42:11.204Z", "scope": { "type": "personal", "id": "Xk3pQ9mZr7Lw2NbT5vYc8HdJ4sFa6GeR" } } ], "facts": [ { "id": "Kq8vN2xLm4pR7tYc3hWzA", "title": "Run oxfmt before committing", "description": "Use oxfmt, not prettier, to format files before committing in acme/web.", "content": "Format changed files with `bun oxfmt` before every commit. Do not use prettier in this repository.", "memory_type": "directive", "updated_at": "2026-10-28T15:42:11.204Z", "scope": { "type": "personal", "id": "Xk3pQ9mZr7Lw2NbT5vYc8HdJ4sFa6GeR" } } ] }}