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

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

Get a chat room with all its messages

chatgetApiV1ChatRoomById

Parameter

1 im Pfad · 1 in der Query

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

Antwortschema

1 dokumentierter Statuscode

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

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

Länge: 24
BeispielZUiVZuKwAaXNoT4nGUbnKR75
kind"ai" | "internal" | "external"Pflicht
titlestringPflicht
sourcestring | nullPflicht
modelstring | nullPflicht
ownerContactExternalIdstring | nullPflicht

16-char shop__contact.external_id of the logged-in customer who owns this thread. Null for anonymous threads and member-owned (internal) threads.

ownerContactNamestring | nullPflicht

Display name of the owning contact (first_name + last_name, or company_name as fallback). Null when no owner is set or when the contact has no name fields filled.

externalUserRefstring | nullPflicht
messageCountstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
totalTokensstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
lastMessageDatestring | nullPflicht
isMarkedProblematicbooleanPflicht

True when the conversation is flagged as a problem case (toggleable).

hasProblematicMessagebooleanPflicht

True when at least one message in the thread is marked problematic.

insertedDatestringPflicht
updatedDatestringPflicht
metadataobjectPflicht
messagesobject[]Pflicht
Jedes Array-Element:
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
role"user" | "assistant" | "system" | "tool" | "member"Pflicht
contentstringPflicht
modelstring | nullPflicht
inputTokensstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
outputTokensstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer
toolCallsobject[] | nullPflicht
Jedes Array-Element:
object
isMarkedProblematicbooleanPflicht

True when this single turn is flagged problematic (permanent — no untoggle).

insertedDatestringPflicht
metadataobjectPflicht
Variante 2
state"error"Pflicht
messagestringPflicht
code"200"Pflicht

Antwortbeispiel

application/json
{
  "state": "ok",
  "room": {
    "id": "ZUiVZuKwAaXNoT4nGUbnKR75",
    "title": "example_title",
    "isMarkedProblematic": false,
    "hasProblematicMessage": false,
    "insertedDate": "example_insertedDate",
    "updatedDate": "example_updatedDate",
    "metadata": {}
  },
  "messages": [
    {
      "id": "example_id",
      "content": "example_content",
      "isMarkedProblematic": false,
      "insertedDate": "example_insertedDate",
      "metadata": {}
    }
  ]
}

Anfragebeispiel

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

get
curl -X GET "https://api.bizkithub.com/api/v1/chat/room/ZUiVZuKwAaXNoT4nGUbnKR75?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Sie brauchen einen API-Schlüssel?

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

API-Schlüssel erhalten