← All REST endpoints

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

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

Read the agent's mood

Parameters
NameInTypeRequiredDefaultAllowedDescription
agent_idquerystringrequired——The agent's agent_key (path segment).

Reads the agent's current emotional state: the VAD mood, the hormone snapshot and the derived mood bucket. Returns the neutral defaults when nothing has been stored yet.

Response

FieldTypeAllowedDescription
agent_idstring—Echoed agent key.
statusstring—Agent status.
current_bucketstring—Mood bucket: neutral, or three digits (valence 0–3, arousal 0–2, dominance 0–2).
mood——Object with valence, arousal, dominance. Defaults: 0.0, 0.5, 0.5.
hormones——Object with cortisol, dopamine, oxytocin, serotonin. Defaults: 0.3, 0.4, 0.4, 0.5.
sourcestringstored, defaultWhether the state was stored or is the fallback.

Example

bash
curl https://therobot.is/api/v1/memory/agents/project-aria/mood \
  -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.