Skip to main content
POST
/
v2
/
chats
/
stream
Stream Chat
curl --request POST \
  --url https://app.textql.com/v2/chats/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "<string>",
  "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tools": {
    "connector_ids": [
      123
    ]
  },
  "connector_ids": [
    123
  ]
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.textql.com/llms.txt

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

Authorizations

Authorization
string
header
required

API key or JWT token

Body

question
string
required

The question to ask

chat_id
string<uuid>

Existing chat ID to continue a conversation

tools
object

Tool configuration

connector_ids
integer<int32>[]

Connector IDs to query

Response

Server-Sent Events stream

SSE stream with JSON data payloads. Event types:

  • {"type":"metadata","id":"...","created_at":"...","model":"...","chat_id":"...","is_continuation":bool}
  • {"type":"text","text":"..."}
  • {"type":"asset","asset":{...}}
  • {"type":"done","status":"completed|failed","error":"..."}