Skip to main content
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": "<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"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://io.net/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
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
array

Additional metadata for the message

Response

200

results
object