cURL
curl --request POST \ --url https://api.intelligence.io.solutions/api/r2r/v3/conversations/{id}/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content": "<string>", "role": "<string>", "parent_id": "format: \"uuid\"", "metadata": "<array>" } '
{ "results": { "id": "id", "message": { "role": "user", "content": "This is a test message.", "name": "name", "function_call": { "key": "value" }, "tool_calls": [ { "key": "value" } ], "tool_call_id": "tool_call_id", "metadata": { "key": "value" }, "structured_content": [ { "key": "value" } ], "image_url": "image_url" }, "metadata": { "key": "value" } } }
Add a new message to a conversation. This endpoint adds a new message to an existing conversation.
The access token received from the authorization server in the OAuth 2.0 flow.
Conversation ID
The content of the message to add
The role of the message to add
The ID of the parent message, if any
Additional metadata for the message
200
Show child attributes
"id"
"user"
"This is a test message."
"name"
"value"
"tool_call_id"
"image_url"
Was this page helpful?