Inspect

Archive memory

Archive a stale, superseded, or no-longer-relevant memory.

Base URL
POST
/api/v2/memories/{memory_id}/archive

Archive a stale, superseded, or no-longer-relevant memory.

Authorization

bearerAuth memories:write
headerAuthorizationBearer <token>

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

Scope: memories:write

Path Parameters

memory_id*string

Request Body

application/json
  1. body
reason?Memories.MemoryArchiveReason
Length1 <= length <= 500

Response Body

Archived memory

application/json
  1. response
data*
Example Request
curl -X POST 'https://app.inspect.com/api/v2/memories/Kq8vN2xLm4pR7tYc3hWzA/archive' \  -H 'Content-Type: application/json' \  -d '{}'
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    }  }}