POST
/
api
/
r2r
/
v3
/
conversations
/
{id}
/
messages
Add message to conversation
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": [
    "<any>"
  ]
}'
{
  "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"
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
integer
required

Conversation ID

Body

application/json
content
string

The content of the message to add

role
string

The role of the message to add

parent_id
string
default:format: "uuid"

The ID of the parent message, if any

metadata
any[]

Additional metadata for the message

Response

200

results
object