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"
}
}Handles chatbot queries with a single user message, without conversation history.
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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns the response of the chatbot based on the single user message
Show child attributes
truestate, gemini-embedding-001, gemini-2.0-flash, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro, gpt-4.1, gpt-5-2025-08-07, gpt-5-mini-2025-08-07, gpt-5-nano-2025-08-07, gpt-5.1-2025-11-13, o4-mini-2025-04-16, moonshotai/kimi-k2-instruct-0905, openai/gpt-oss-120b, whisper-1, ['gpt-4.1', 'gpt-5-2025-08-07', 'gpt-5-mini-2025-08-07', 'gpt-5-nano-2025-08-07', 'o4-mini-2025-04-16', 'gpt-5.1-2025-11-13', 'whisper-1'], ['gemini-2.0-flash', 'gemini-2.5-flash', 'gemini-2.5-flash-lite', 'gemini-2.5-pro'], ['truestate'], ['moonshotai/kimi-k2-instruct-0905', 'openai/gpt-oss-120b']