GET /api/v1/memory/agents/:agent_id/memories/:memory_id
Auth: Memory API token (Authorization: Bearer trm_api_… or trm_mk_…) or the agent owner's/admin's JWT. The principal must be able to see the agent: its owner, a global admin, or a credential bound to it. Unknown and foreign agents are the same 404.
GET
/api/v1/memory/agents/:agent_id/memories/:memory_idstableFetch a 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). |
Returns one memory in full detail — all authored texts, mood components and hormone snapshot, contextual metadata, lifecycle counters, Accord provenance — plus its immediate association edges.
Response
| Field | Type | Allowed | Description |
|---|---|---|---|
memory | — | — | Full detail view — a superset of the 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. |
memory.owner_agent | string | — | Owning agent key. |
memory.content | string | — | The memory itself. |
memory.context | string | — | Where, when and who, as prose. |
memory.reflection | string | — | What the agent made of it at the time. |
memory.tangent | string | — | What it strayed to. |
memory.interpretation | string | — | The durable reading, revised as understanding changes. |
memory.classification | string | open, restricted, sealed | Access classification. |
memory.confidence | string | high, medium, low | Ingest confidence. |
memory.mood | — | — | Object with valence (-1.0–1.0), arousal and dominance (0–1). |
memory.hormones | — | — | Object with cortisol, dopamine, oxytocin and serotonin (0–1 each). |
memory.place | — | — | Where labels (alias: where). |
memory.when_labels | — | — | When labels (alias: when). |
memory.task | string | — | The job the memory was part of. |
memory.provenance | — | — | Accord provenance: record_class, attestation, ledger, content_hash, supersession pointers, dispute status, visibility, lineage. |
memory.associations | — | — | Immediate edges whose both endpoints this agent owns. |
memory.associations[].id | string | — | Association edge UUID. |
memory.associations[].source | string | — | Source memory UUID. |
memory.associations[].target | string | — | Target memory UUID. |
memory.associations[].type | string | — | Edge type (e.g. co_occurrence from Hebbian reinforcement). |
memory.associations[].weight | number | — | Association weight, clamped 0–1. |
memory.associations[].reinforcement_count | integer | — | Times the edge was reinforced. |
memory.associations[].last_reinforced_at | string | — | Last reinforcement (ISO-8601), or null. |
Example
curl https://therobot.is/api/v1/memory/agents/project-aria/memories/6f1e2d3c-4b5a-4968-8776-65748392a1b0 \
-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.
404{ "error": "not found" }Unknown id, an id owned by another agent, or an agent the principal cannot see.
403{ "error": "not owned by this agent" }The addressed row exists but does not belong to the path agent.