Skip to main content
POST
/
api
/
chat
/
memory
Create or update memory
curl --request POST \
  --url https://sontairo.com/api/chat/memory \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "<string>",
  "key": "<string>",
  "value": "<string>",
  "projectId": "<string>",
  "category": "general"
}
'
{
  "data": {
    "id": "<string>",
    "workspaceId": "<string>",
    "projectId": "<string>",
    "key": "<string>",
    "value": "<string>",
    "category": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
workspaceId
string
required
key
string
required

Unique key for the memory entry

Required string length: 1 - 255
value
string
required

Memory content

Minimum string length: 1
projectId
string | null
category
string
default:general

Category for organizing memory

Response

201 - application/json

Memory created or updated

data
object