BizKitHub
DokumentationAPI-ExplorerChat/api/v1/chat/room/{id}/message
postChatÖffentliche API v1

/api/v1/chat/room/{id}/message

Append a message to a chat room

chatpostApiV1ChatRoomByIdMessage

Parameter

1 im Pfad · 1 in der Query · JSON-Body

Pfadparameter

· 1
idstringPflicht

Chat room public id (cas__chat_room.external_id), 24 chars.

Länge: 24
BeispielZUiVZuKwAaXNoT4nGUbnKR75

Query-Parameter

· 1
apiKeystringPflicht

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Request-Body

application/json
contentstringPflicht

Message body.

Länge: 1–∞
role"user" | "assistant" | "system" | "tool" | "member"Optional
modelstringOptional
Länge: 0–100
inputTokensstring | integerOptional
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
Bereich: 0–∞
outputTokensstring | integerOptional
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
Bereich: 0–∞
toolCallsobject[]Optional

Debug trail of tool invocations for this turn — each entry is one tool call ({ toolCallId, toolName, args, result, state }). Persisted as-is in cas__chat_message.tool_calls (jsonb).

Jedes Array-Element:
object
markProblematicbooleanOptional

Permanently flag this single message as problematic. Used by ChatSPC when the model calls recordUnansweredQuery — there's no message-level untoggle.

metadataobjectOptional

Antwortschema

1 dokumentierter Statuscode

200Erfolg
object | object
Eine von 2 Varianten:
Variante 1
state"ok"Pflicht
idstringPflicht

Chat message public id (cas__chat_message.external_id), 24 chars.

Länge: 24
positionstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
Variante 2
state"error"Pflicht
messagestringPflicht
code"200"Pflicht

Antwortbeispiel

application/json
{
  "state": "ok",
  "id": "example_id"
}

Anfragebeispiel

POST /api/v1/chat/room/{id}/message

post
curl -X POST "https://api.bizkithub.com/api/v1/chat/room/ZUiVZuKwAaXNoT4nGUbnKR75/message?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "content": "example_content",
  "model": "example_model",
  "toolCalls": [
    {}
  ],
  "markProblematic": false,
  "metadata": {}
}'

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten