Skip to main content
POST
/
chat
Chat with MemOS
curl --request POST \
  --url https://api.example.com/chat \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "What is the latest update?",
  "user_id": "user123"
}
'
{
  "message": "Operation successful",
  "code": 200,
  "data": "<string>"
}

Body

application/json
query
string
required

Chat query message.

Example:

"What is the latest update?"

user_id
string | null

User ID for the request

Example:

"user123"

Response

Successful Response

Response model for chat operations.

message
string
required

Response message

Example:

"Operation successful"

code
integer
default:200

Response status code

Example:

200

data
string | null

Response data