cURL
curl --request POST \ --url https://api.chat-dash.com/v1/public/agents/{agentId}/conversations/{conversationId}/messages \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "messages": [ { "sender": "user", "type": "text", "content": { "text": "<string>" }, "metadata": { "model": "<string>", "total": 123 }, "createdAt": "<string>" } ] } '
{ "message": "Messages added successfully" }
Push one or more new messages to a conversation
All requests to the ChatDash API must be validated with the agency API Key found on your agency profile
The ID of the agent
The ID of the conversation
Show child attributes
user
bot
agent
The type of the message, which is 'text' for TextMessage
text
"text"
The text of the message
Token usage or any other metadata for the message
The model for the token usage
The total number of tokens used
The date and time the message was created
OK
"Messages added successfully"