POST /api/v1/memory/agents/:agent_id/memories/:memory_id/restore
Auth: Memory API token (Authorization: Bearer trm_api_… or trm_mk_…) minted with writes_enabled=true, or the agent owner's/admin's JWT. A recall-only credential gets 403 writes are off for this credential.
POST
/api/v1/memory/agents/:agent_id/memories/:memory_id/restorestableRestore an archived memory
| Name | In | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|---|
agent_id | query | string | required | — | — | The agent's agent_key (path segment). |
memory_id | query | string | required | — | — | Memory UUID (path segment). |
Brings an archived memory back into the active lifecycle.
Response
| Field | Type | Allowed | Description |
|---|---|---|---|
memory | — | — | The memory after restore (node shape). |
memory.id | string | — | Memory UUID. |
memory.title | string | — | Human-readable label (empty for a sealed memory whose title was stripped). |
memory.sealed | boolean | — | True when the row is sealed and its contents withheld. |
memory.summary | string | — | Generated or authored summary (may be empty). |
memory.record_class | string | original, summary, inferred, reconstructed, user_supplied, system_generated, contested | Provenance class of the record. |
memory.disputed | boolean | — | Whether the record is under dispute. |
memory.content_type | string | episodic, semantic, procedural | Memory type. |
memory.state | string | active, consolidating, archived, quarantined, pruned | Lifecycle state. |
memory.compartment | string | — | Access compartment slug (default: default). |
memory.salience | number | — | Current salience, 0–1. |
memory.decay_weight | number | — | Decay weight, clamped 0.05–1.0. |
memory.pinned | boolean | — | Pinned memories resist decay. |
memory.valence | number | — | Emotional valence at capture, -1.0–1.0. |
memory.arousal | number | — | Emotional arousal at capture, 0–1. |
memory.recall_count | integer | — | Times recalled. |
memory.occurred_at | string | — | When the memory is about (ISO-8601), or null. |
Example
curl -X POST https://therobot.is/api/v1/memory/agents/project-aria/memories/6f1e2d3c-4b5a-4968-8776-65748392a1b0/restore \
-H "Authorization: Bearer trm_api_EXAMPLE"Errors
401{ "error": "Authentication required" }A well-formed but unknown or revoked trm_ bearer. The response does not say which.
403{ "error": "writes are off for this credential" }A credential without writes_enabled=true hit a write endpoint.
404{ "error": "not found" }Unknown id, an id owned by another agent, or an agent the principal cannot see.