POST /v1/process
Queues post-turn memory processing and returns immediately.Request body
Request fields
| Field | Type | Required | Notes |
|---|---|---|---|
user_id | string | Yes | User identity for the turn. |
containers | ContainerHint[] | No | Optional scope buckets. Missing containers are created automatically. |
scope_policy | ScopePolicy | No | Write policy override block. Defaults are applied if omitted. |
turn | TurnEnvelope | Yes | The completed user and assistant messages. |
metadata | RequestMetadata | No | Host app metadata for tracing and provenance. |
ContainerHint
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | Container identifier. |
type | string | null | No | Informational container type such as thread or project. |
ScopePolicy
| Field | Type | Required | Notes |
|---|---|---|---|
write_user | auto | true | false | No | Defaults to auto. |
write_global | auto | true | false | No | Defaults to auto. |
write_container | boolean | No | Defaults to true. |
TurnEnvelope
| Field | Type | Required | Notes |
|---|---|---|---|
user_message | string | Yes | Raw user message for the processed turn. |
assistant_response | string | Yes | Assistant message that followed the user message. |
occurred_at | datetime | null | No | Optional source timestamp for the turn. |
user_message_id | string | null | No | Optional upstream message id. |
assistant_message_id | string | null | No | Optional upstream message id. |
RequestMetadata
| Field | Type | Required | Notes |
|---|---|---|---|
app | string | null | No | Host application name. |
source | string | null | No | Source channel such as chat. |
model | string | null | No | Upstream model identifier if relevant. |
trace_id | string | null | No | Trace or correlation id. |
Response
Behavior
- creates the user if missing
- creates missing containers
- stores a background job
- returns immediately