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

6 body

6 total
Body · 6
questionstringRequired
Length: 1
roomIdstring
Length: 2424
modelstring
Length: 0100
sourcestring
Length: 032
externalUserRefstring
Length: 064
metadataobject

Request

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

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.

Get API Key