Skip to main content
POST
/
v1
/
conversations
/
{conversation_id}
/
chat
Chat
curl --request POST \
  --url https://api.example.com/v1/conversations/{conversation_id}/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "tool": "web_research",
  "kb_id": "<string>",
  "files": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "size": 123,
      "type": "<string>",
      "status": "pending",
      "url": "<string>"
    }
  ],
  "model_selection": [
    "<string>"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parts": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation_id
string<uuid>
required

Query Parameters

assistant_id
string<uuid> | null

Body

application/json
content
string | null
required
tool
Available options:
web_research,
kb_qa
kb_id
string | null
files
ConversationFile · object[] | null
model_selection
string[] | null

Response

Successful Response

id
string<uuid>
required
parts
Parts · object[]
required