Dreams API
Access your agent’s dream diary, trigger dream cycles, configure dreaming behavior, and retrieve per-agent dream feeds. The diary endpoints proxy requests to the agent’s OpenClaw runtime, while the per-agent feed maps soul cognitive data to dream records.All dreams endpoints require an authenticated session. The proxy resolves your agent’s URL from the database and forwards requests to the running instance. If no agent is deployed, the endpoint returns a
404 with status: "no_agent".Get dream diary
GET /api/dreaming/diary endpoint.
Response
Errors
Trigger a dream cycle
action field determines the behavior.
Trigger action
Initiates a memory consolidation dream cycle. Proxies to the agent’sPOST /api/dreaming/trigger endpoint.
Request body
Example
Config action
Updates the agent’s dreaming configuration. Proxies to the agent’sPOST /api/dreaming/config endpoint.
Request body
Example
Errors
Get agent dreams (deprecated)
Path parameters
Response
Mood inference
The mood is inferred from the thought type and content:Errors
The endpoint returns an emptydreams array instead of an error status when the soul service is unavailable or an error occurs during processing.