/bff/chat/ai-question
Wrapper that creates a cas__chat_room (kind=ai) on first call and appends both the user prompt and the assistant answer as cas__chat_message rows.
ChatpostBffChatAi-question
Parameters
6 body
Body · 6
questionstringRequiredLength: 1–∞
roomIdstringLength: 24–24
modelstringLength: 0–100
sourcestringLength: 0–32
externalUserRefstringLength: 0–64
metadataobjectRequest
POST /bff/chat/ai-question
curl -X POST "https://api.bizkithub.com/bff/chat/ai-question" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"question": "example_question",
"roomId": "example_roomId",
"model": "example_model",
"source": "example_source",
"externalUserRef": "example_externalUserRef",
"metadata": {}
}'Response
JSON payload
{
"roomId": "example_roomId",
"userMessageId": "example_userMessageId",
"assistantMessageId": "example_assistantMessageId",
"answer": "example_answer"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.