← All REST endpoints

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_idstable

Fetch a memory

Parameters
NameInTypeRequiredDefaultAllowedDescription
agent_idquerystringrequired——The agent's agent_key (path segment).
memory_idquerystringrequired——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

FieldTypeAllowedDescription
memory——Full detail view — a superset of the node shape.
memory.idstring—Memory UUID.
memory.titlestring—Human-readable label (empty for a sealed memory whose title was stripped).
memory.sealedboolean—True when the row is sealed and its contents withheld.
memory.summarystring—Generated or authored summary (may be empty).
memory.record_classstringoriginal, summary, inferred, reconstructed, user_supplied, system_generated, contestedProvenance class of the record.
memory.disputedboolean—Whether the record is under dispute.
memory.content_typestringepisodic, semantic, proceduralMemory type.
memory.statestringactive, consolidating, archived, quarantined, prunedLifecycle state.
memory.compartmentstring—Access compartment slug (default: default).
memory.saliencenumber—Current salience, 0–1.
memory.decay_weightnumber—Decay weight, clamped 0.05–1.0.
memory.pinnedboolean—Pinned memories resist decay.
memory.valencenumber—Emotional valence at capture, -1.0–1.0.
memory.arousalnumber—Emotional arousal at capture, 0–1.
memory.recall_countinteger—Times recalled.
memory.occurred_atstring—When the memory is about (ISO-8601), or null.
memory.owner_agentstring—Owning agent key.
memory.contentstring—The memory itself.
memory.contextstring—Where, when and who, as prose.
memory.reflectionstring—What the agent made of it at the time.
memory.tangentstring—What it strayed to.
memory.interpretationstring—The durable reading, revised as understanding changes.
memory.classificationstringopen, restricted, sealedAccess classification.
memory.confidencestringhigh, medium, lowIngest 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.taskstring—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[].idstring—Association edge UUID.
memory.associations[].sourcestring—Source memory UUID.
memory.associations[].targetstring—Target memory UUID.
memory.associations[].typestring—Edge type (e.g. co_occurrence from Hebbian reinforcement).
memory.associations[].weightnumber—Association weight, clamped 0–1.
memory.associations[].reinforcement_countinteger—Times the edge was reinforced.
memory.associations[].last_reinforced_atstring—Last reinforcement (ISO-8601), or null.

Example

bash
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.