Conversations
Add Message
Add a message to a conversation
POST
Add Message
Add Message
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AgentFlow is built by ES Consulting — production AI systems, delivered.
Add a message to a conversation
curl --request POST \
--url https://api.example.com/conversations/{conversation_id}/messages| Parameter | Type | Description |
|---|---|---|
conversation_id | string | Conversation ID |
{
"role": "user",
"content": "What were the top products?"
}
| Field | Type | Required | Description |
|---|---|---|---|
role | string | yes | Must be user |
content | string | yes | Message text |
message_id | string | no | Stable caller-provided message id |
metadata | object | no | Optional message metadata |
{
"id": "msg_abc123",
"conversation_id": "conv_abc123",
"role": "user",
"content": "What were the top products?",
"timestamp": "2026-03-15T10:31:00Z"
}
Was this page helpful?
curl --request POST \
--url https://api.example.com/conversations/{conversation_id}/messages