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"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.chataigne.ai/llms.txt

Use this file to discover all available pages before exploring further.

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