← All REST endpoints

GET /api/v1/memory/agents/:agent_id/memories

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/memoriesstable

Browse memories

Parameters
NameInTypeRequiredDefaultAllowedDescription
agent_idquerystringrequired——The agent's agent_key (path segment).
qquerystringoptional——Trigram search over content, summary, context, title and interpretation.
content_typequerystringoptional—episodic, semantic, proceduralFilter by memory type.
statequerystringoptional—active, consolidating, archived, quarantined, prunedFilter by lifecycle state. Absent: everything but pruned.
compartmentquerystringoptional——Filter by compartment slug.
domainquerystringoptional——Filter by domain label.
pinnedquerybooleanoptional——Filter to pinned (or unpinned) rows.
occurred_afterquerystringoptional——ISO-8601 lower bound on occurred_at.
occurred_beforequerystringoptional——ISO-8601 upper bound on occurred_at.
record_classquerystringoptional—original, summary, inferred, reconstructed, user_supplied, system_generated, contestedFilter by provenance class.
disputedquerybooleanoptional——Filter to disputed (or undisputed) rows.
sortquerystringoptionaloccurred_atoccurred_at, salience, last_recalled_atSort column. Every ordering carries an id tiebreaker, so pages never skip or repeat rows.
orderquerystringoptionaldescdesc, ascSort direction.
limitqueryintegeroptional50—Page size, capped at 200.
cursorquerystringoptional——Opaque keyset cursor from next_cursor. An unparseable cursor yields an empty page rather than restarting.
include_orgquerybooleanoptionaltrue—Pass false to see only this agent's own rows.
orgquerystringoptional——Name a specific organization for the org arm (membership-checked, never trusted).
repoquerystringoptional——Narrow the org arm to one repo slug.

Owner-scoped, filterable, keyset-paginated memory list. Without an explicit state, pruned tombstones are excluded and every other state (including archived) is returned; by default the agent's org's open memories are included too.

Response

FieldTypeAllowedDescription
memories——Array of memory nodes for this page.
memories[].idstring—Memory UUID.
memories[].titlestring—Human-readable label (empty for a sealed memory whose title was stripped).
memories[].sealedboolean—True when the row is sealed and its contents withheld.
memories[].summarystring—Generated or authored summary (may be empty).
memories[].record_classstringoriginal, summary, inferred, reconstructed, user_supplied, system_generated, contestedProvenance class of the record.
memories[].disputedboolean—Whether the record is under dispute.
memories[].content_typestringepisodic, semantic, proceduralMemory type.
memories[].statestringactive, consolidating, archived, quarantined, prunedLifecycle state.
memories[].compartmentstring—Access compartment slug (default: default).
memories[].saliencenumber—Current salience, 0–1.
memories[].decay_weightnumber—Decay weight, clamped 0.05–1.0.
memories[].pinnedboolean—Pinned memories resist decay.
memories[].valencenumber—Emotional valence at capture, -1.0–1.0.
memories[].arousalnumber—Emotional arousal at capture, 0–1.
memories[].recall_countinteger—Times recalled.
memories[].occurred_atstring—When the memory is about (ISO-8601), or null.
next_cursorstring—Opaque cursor for the next page; null means the last page.

Example

bash
curl "https://therobot.is/api/v1/memory/agents/project-aria/memories?state=archived&limit=50" \
  -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 or foreign agent key — at the agent level the two are deliberately the same answer, so no existence leaks.