Skip to main content
POST
/
v2
/
chats
Create Chat
curl --request POST \
  --url https://app.textql.com/v2/chats \
  --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
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "model": "<string>",
  "response": "<string>",
  "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "assets": [
    {
      "type": "<string>",
      "url": "<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

Chat response

id
string<uuid>

Message ID

created_at
string<date-time>
model
string

LLM model used

response
string

Markdown-formatted answer

chat_id
string<uuid>

Chat session ID

assets
object[]