BizKitHub
DocsAPI ReferenceChat/bff/chat/create-ticket-from-turn
postChatAdmin BFF

/bff/chat/create-ticket-from-turn

The Agent emits a \``propose-ticket` fenced block in its answer when it cannot resolve the operator's request. On confirmation, the client posts this endpoint with { roomId, kind }; the server reads the full chat transcript, composes title/description/priority via askAIJson, and creates either a BizKitHub support ticket or an internal issue in the operator's own default project. Returns the new issueKey and its admin URL.

ChatpostBffChatCreate-ticket-from-turn

Parameters

JSON body

Request body

application/json
roomIdstringRequired
Length: 2424
kind"support" | "internal"Required

Response schema

1 status code documented

200Success
object | object
One of 2:
Variant 1
success"true"Required
issueKeystringRequired
Length: 1
urlstringRequired
Length: 1
Variant 2
success"false"Required
error"member_required"Required

Response example

application/json
{
  "success": true,
  "issueKey": "example_issueKey",
  "url": "example_url"
}

Request example

POST /bff/chat/create-ticket-from-turn

post
curl -X POST "https://api.bizkithub.com/bff/chat/create-ticket-from-turn" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "roomId": "example_roomId"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key