Skip to main content
POST
/
projects
/
{project_id}
/
playground-conversations
/
{conversation_id}
/
send_message_stream
Send message (streaming)
import requests

url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/playground-conversations/{conversation_id}/send_message_stream/"

payload = { "message": "What information do you have about product pricing?" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
"data: {\"type_streaming\": \"streaming_in_progress\", \"payload\": {\"type\": \"start_token_streaming\", \"content\": \"\"}}\n\ndata: {\"type_streaming\": \"streaming_in_progress\", \"payload\": {\"type\": \"token_streaming\", \"content\": \"The\"}}\n\ndata: {\"type_streaming\": \"streaming_in_progress\", \"payload\": {\"type\": \"token_streaming\", \"content\": \"The document\"}}\n\ndata: {\"type_streaming\": \"streaming_in_progress\", \"payload\": {\"type\": \"tool_call\", \"tool_type\": \"semantic_chunks\", \"results\": [...]}}\n\ndata: {\"type_streaming\": \"streaming_completed\", \"payload\": {\"conversation_id\": \"uuid\", \"chat_history\": [...]}}\n"

Documentation Index

Fetch the complete documentation index at: https://docs.clarifeye.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Use Authorization: Bearer

Headers

X-Impersonate-Email
string<email>

Email of the user to impersonate. Requires CAN_IMPERSONATE_OTHER_USERS permission. If the target user is not found or does not have access to the project, the request proceeds as the authenticated user. Contact Clarifeye to enable this permission.

Path Parameters

project_id
string<uuid>
required

UUID of the project

conversation_id
string<uuid>
required

UUID of the conversation

Body

application/json
message
string
required

The user message to send

Example:

"What information do you have about product pricing?"

Response

Server-Sent Events stream

The response is of type string.