Trigger an asynchronous memory consolidation job.
POST /api/v1/cloud/dreams
Creates a Dream that asynchronously consolidates the specified Memory Store. Returns a Dream object.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
inputs | array | Yes | Input list. Must include one memory_store type input; optionally include sessions type inputs |
model | string | No | Model selection: auto (default), lite, ultimate |
instructions | string | No | Custom consolidation instructions, max 4096 characters |
inputs elements
| Field | Type | Description |
|---|---|---|
type | string | "memory_store" or "sessions" |
memory_store_id | string | Required when type is memory_store |
session_ids | array | Required when type is sessions, max 100 Session IDs |
Example request
Example response
HTTP 201 Created
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Empty inputs, missing memory_store input, duplicate memory_store, sessions exceeds 100, invalid model, instructions too long |
| 401 | authentication_error | Missing or invalid authentication token |
| 404 | not_found_error | Referenced Memory Store does not exist or is inaccessible |
| 409 | invalid_request_error | User already has an active Dream (pending or running) |