Skip to main content
POST
/
api
/
v2
/
project
/
{project_id}
/
message
Create Conversation And Message
curl --request POST \
  --url https://api.example.com/api/v2/project/{project_id}/message \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "node_ids": [
    {
      "node_id": "<string>",
      "name": "<string>"
    }
  ],
  "agent_id": "<string>",
  "attachment_ids": [
    "<string>"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

x-api-key
string | null
x-user-id
string | null

Path Parameters

project_id
string
required

Query Parameters

hidden
boolean
default:true

Whether to hide this conversation from the web UI

Body

application/json
content
string
required
node_ids
NodeContext · object[] | null
agent_id
string | null
attachment_ids
string[] | null

Response

Successful Response