Skip to main content
POST
/
chatbots
/
query-single-message
Query a Chatbot with a single message
curl --request POST \
  --url https://api.example.com/chatbots/query-single-message/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query_str": "<string>",
  "assistant_id": "<string>",
  "conversation_id": "<string>",
  "image_str": "<string>",
  "completion_kwargs": {}
}
'
{
  "query_str": "<string>",
  "response": "<string>",
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "model_type": "truestate"
  }
}

Authorizations

Authorization
string
header
required

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

Headers

Api-key
string | null

Body

application/json
query_str
string
required
assistant_id
string
required
conversation_id
string | null
image_str
string | null
completion_kwargs
Completion Kwargs · object

Response

Returns the response of the chatbot based on the single user message

query_str
string
required
response
string
required
usage
LLMUsage · object
required