/bff/chat/persist-turn
Use this when the AI answer was generated client-side (e.g. via SSE streaming) and you only need to write the audit trail without re-calling the model.
ChatpostBffChatPersist-turn
Parameters
9 body
Body · 9
questionstringRequiredLength: 1–∞
answerstringRequiredLength: 1–∞
roomIdstringLength: 24–24
modelstringLength: 0–100
sourcestringLength: 0–32
externalUserRefstringLength: 0–64
inputTokensstring | integerRange: 0–∞
outputTokensstring | integerRange: 0–∞
metadataobjectRequest
POST /bff/chat/persist-turn
curl -X POST "https://api.bizkithub.com/bff/chat/persist-turn" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"question": "example_question",
"answer": "example_answer",
"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"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.