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/moodstableRead the agent's mood
| Name | In | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|---|
agent_id | query | string | required | — | — | 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
| Field | Type | Allowed | Description |
|---|---|---|---|
agent_id | string | — | Echoed agent key. |
status | string | — | Agent status. |
current_bucket | string | — | 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. |
source | string | stored, default | Whether the state was stored or is the fallback. |
Example
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.