Skip to content

Send a chat message

POST
/api/intake/{conversation_id}/messages
curl --request POST \
--url https://example.com/api/intake/example/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "message": "example" }'

Stores a user message and returns a Memobot response. If the conversation is in AWAITING_DEAL_NAME state the message is treated as the deal name. If the message matches generate/start/go, generation is triggered (JSON response). Otherwise returns an LLM-powered streaming response (SSE) or JSON fallback.

conversation_id
required
Conversation Id
string
Media type application/json
ChatMessageRequest
object
message
required
Message
string
>= 1 characters <= 5000 characters
Example generated
{
"message": "example"
}

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}