Skip to main content
POST
/
api
/
chat
/
ask
Submit chat query
curl --request POST \
  --url https://api.example.com/api/chat/ask \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "llm": "<string>",
  "chat_id": "<string>",
  "entry_id": "<string>",
  "locale": "en",
  "is_initial_message": true,
  "user_timezone": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: 'Bearer '

Body

application/json
query
string
required
llm
string
required
chat_id
string
required
entry_id
string
required
locale
string
default:en
is_initial_message
boolean | null
user_timezone
string | null

Response

Successful Response