Skip to main content
Create a memory cube — the isolation unit of memory. A cube can carry readable/writable principal lists for fine-grained access control.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...>. Minimum role: contributor.

Path parameters

string
required
Workspace id.

Request body

string
Cube name; defaults to “默认记忆立方体” when omitted.
string[]
List of readable principal ids.
string[]
List of writable principal ids.

Response

string
Cube id (cube_...).
string
Name.
string
Owner user id.
string
Owning workspace id.
string[]
Readable principal ids.
string[]
Writable principal ids.
string
Creation time (RFC3339).

Example