GET /api/v1/memory/agents
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/agentsstableList agents with memory state
Lists agents that have memory state, with memory and edge counts and the current mood bucket. Tenancy-scoped: a credential sees exactly its bound agent, a user the agents assigned to them, an admin everything.
Response
| Field | Type | Allowed | Description |
|---|---|---|---|
agents | — | — | Array of agents with memory state. |
agents[].agent_id | string | — | The agent's agent_key. |
agents[].current_bucket | string | — | Mood bucket: neutral, or three digits (valence 0–3, arousal 0–2, dominance 0–2). |
agents[].memory_count | integer | — | Memories owned by the agent. |
agents[].edge_count | integer | — | Association edges rooted in the agent's memories. |
Example
curl https://therobot.is/api/v1/memory/agents \
-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.