← All REST endpoints

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

List 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

FieldTypeAllowedDescription
agents——Array of agents with memory state.
agents[].agent_idstring—The agent's agent_key.
agents[].current_bucketstring—Mood bucket: neutral, or three digits (valence 0–3, arousal 0–2, dominance 0–2).
agents[].memory_countinteger—Memories owned by the agent.
agents[].edge_countinteger—Association edges rooted in the agent's memories.

Example

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