Create memory
Create one durable memory. `personal` always targets the API key user's own scope.
Base URL
POST
Create one durable memory. personal always targets the API key user's own scope.
bearerAuth memories:writeheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: memories:write
application/json- body
title*Memories.MemoryTitleLength
1 <= length <= 200content*Memories.MemoryContentCanonical Markdown body. Directive memories must be at most 2000 characters so they can be injected in full.
Length
1 <= length <= 20000description*Memories.MemoryDescriptionLength
10 <= length <= 420memory_type*Memories.MemoryTypeValue in
"fact""directive"scope*"personal"Value in
"personal"scope_id?Memories.MemoryUserIdNot supported for personal memories. Any value is rejected with 400.
Length
1 <= lengthCreated memory
application/json- response
data*curl -X POST 'https://app.inspect.com/api/v2/memories' \ -H 'Content-Type: application/json' \ -d '{ "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", "scope": "personal"}'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 }, "scope": { "type": "personal", "id": "Xk3pQ9mZr7Lw2NbT5vYc8HdJ4sFa6GeR" } }}