Skip to main content

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

Returns the agent’s dream diary timeline. Proxies to the agent’s GET /api/dreaming/diary endpoint.

Response

Errors


Trigger a dream cycle

Triggers a dream cycle or updates dreaming configuration. The action field determines the behavior.

Trigger action

Initiates a memory consolidation dream cycle. Proxies to the agent’s POST /api/dreaming/trigger endpoint.

Request body

Example

Config action

Updates the agent’s dreaming configuration. Proxies to the agent’s POST /api/dreaming/config endpoint.

Request body

Example

Errors


Get agent dreams (deprecated)

This endpoint is deprecated and will be removed in a future release. Use the GET /api/openclaw/dreams endpoint to retrieve dream data through the authenticated agent proxy instead.
Returns dream records for a specific agent. Dreams are derived from the agent’s recent soul thoughts, with mood inferred from thought type and content. No authentication required.

Path parameters

Response

Mood inference

The mood is inferred from the thought type and content:

Errors

The endpoint returns an empty dreams array instead of an error status when the soul service is unavailable or an error occurs during processing.