API reference · API
Make a memory space
POST/v1/memory_spacesAPI key
A space embeds with one model, the operator's default unless named. A 404 at every path while the operator has not turned memory on.
Request body
application/json, optional
| Field | Type | What it is |
|---|---|---|
| name | string or null | |
| user | string or null | |
| metadata | object or null | |
| embedding_model | string | At most 200 characters. |
| embedding_dimensions | integer | At most 9007199254740991. |
Example
{}Answer 200
The space.
| Field | Type | What it is |
|---|---|---|
| id | string | msp_ and 24 hex digits. |
| object | "memory_space" | |
| name | string | |
| user | string or null | |
| agent_id | integer or null | Set on an agent's space. |
| default | boolean | |
| metadata | object | |
| memory_count | integer | |
| embedding_model | string | |
| embedding_dimensions | integer or null | |
| created_at | integer | |
| updated_at | integer |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 503OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.