Conversation

Append new messages

Beta
POST
Append messages to an existing conversation. The conversation must be initialized first. If a message with the same id already exists, it will be ignored.

Path parameters

conversationIdstringRequired
The ID of the conversation to append messages to

Request

This endpoint expects a list of objects.
id
stringRequired
Externally supplied ID to uniquely identify this message within the conversation
text
stringRequired
The text of the message. Cannot be empty
userMessageType
enumRequired
The type of user message
Allowed values: USERHUMAN_AGENTEXTERNAL_SYSTEM
context
objectOptional
The context of the message

Response

This endpoint returns an object
context
object
The context of the conversation
id
string
Externally supplied ID to uniquely identify this conversation
messages
list of unions
The messages in the conversation
responseConfig
objectOptional
Optional configurations for responses to this conversation

Errors