Skip to main content
POST
/
message
/
assistant
curl --request POST \
  --url https://api.example.com/message/assistant \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversationId": "conv_123",
  "sender": "assistant",
  "type": "text",
  "content": "Hello, how can I help you with your order?"
}
'
{
  "code": "MESSAGE_VALIDATION_ERROR",
  "message": "Invalid message data",
  "details": {
    "missingFields": [
      "id",
      "conversationId"
    ]
  }
}

Body

application/json

Assistant message data

conversationId
string
required

ID of the conversation this message belongs to

Example:

"conv_12345"

sender
enum<string>
required

Who is sending the message

Available options:
user,
assistant,
system,
tool
Example:

"assistant"

type
enum<string>
required

Type of message - text for simple text messages

Available options:
text
Example:

"text"

content
string
required

The text content of the message

Example:

"Hello, how can I help you with your order today?"

Response

Assistant message registered successfully