Conversations
Add a message to a conversation
Creates a document from the message text and attaches it to the conversation at the given position. If position is omitted, it is appended at the end.
post/v1/projects/{project_id}/conversations/{conversation_id}/messages
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/conversations/{conversation_id}/messages
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
conversation_idstring required
Example:conv_V1StGXR8Z5jdHi6B
Conversation ID
Request body
Example request
{
"message": "Hello, how can I help you?",
"role": "user",
"actor_id": "actor_V1StGXR8Z5jdHi6B",
"metadata": {
"author": "John",
"revision": 2
}
}Response
Message added
Example response
{
"document_id": "doc_V1StGXR8Z5jdHi6B",
"role": "user",
"actor_id": "actor_V1StGXR8Z5jdHi6B",
"agent_id": "agent_V1StGXR8Z5jdHi6B",
"metadata": {
"author": "John",
"revision": 2
},
"idempotency_key": "wamid.HBgLNTUxMTk4..."
}Changes
No recorded changes to this operation across all 1 revision of this API.