DocsAPI ReferenceChat/bff/chat/persist-turn
postChatAdmin BFF

/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

9 total
Body · 9
questionstringRequired
Length: 1
answerstringRequired
Length: 1
roomIdstring
Length: 2424
modelstring
Length: 0100
sourcestring
Length: 032
externalUserRefstring
Length: 064
inputTokensstring | integer
Range: 0
outputTokensstring | integer
Range: 0
metadataobject

Request

POST /bff/chat/persist-turn

post
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.

Get API Key