Create memories

Store new memories in a MemCube.

POST
/
memories
{
  "code": 200,
  "message": "Operation successful",
  "data": null
}

Body

application/json
user_id
string | null

User ID for the request

Example:
"user123"
messages
Message·object[] | null

List of messages to store.

Show child attributes
Example:
[ { "content": "Hello", "role": "user" } ]
mem_cube_id
string | null

ID of the memory cube

Example:
"cube123"
memory_content
string | null

Content to store as memory

Example:
"This is a memory content"
doc_path
string | null

Path to document to store

Example:
"/path/to/document.txt"

Response

application/json

Successful Response

Simple response model for operations without data return.

code
number
default: 200

Response status code

Example: 200
message
string
required

Response message

Example: "Operation successful"
data
null

Response data