BizKitHub
DocsAPI ReferenceChat/bff/chat/ai-question
postChatAdmin BFF

/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

JSON body

Request body

application/json
questionstringRequired
Length: 1
roomIdstringOptional
Length: 2424
modelstringOptional
Length: 0100
sourcestringOptional
Length: 032
externalUserRefstringOptional
Length: 064
metadataobjectOptional

Response schema

1 status code documented

200Success
roomIdstringRequired
Length: 2424
userMessageIdstringRequired
Length: 2424
assistantMessageIdstringRequired
Length: 2424
answerstringRequired

Response example

application/json
{
  "roomId": "example_roomId",
  "userMessageId": "example_userMessageId",
  "assistantMessageId": "example_assistantMessageId",
  "answer": "example_answer"
}

Request example

POST /bff/chat/ai-question

post
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": {}
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key