BizKitHub
getpostChatÖffentliche API v1

/api/v1/chat/room

Returns rooms owned by the API key holder, newest activity first.

chatgetApiV1ChatRoom

Parameter

8 in der Query

Query-Parameter

· 8
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
kind"ai" | "internal" | "external"Optional
sourcestringOptional
Länge: 0–32
Beispielexample_source
externalUserRefstringOptional

Partition rooms by end-user id (e.g. ChatSPC cuRefNo, anon-token).

Länge: 0–64
Beispielexample_externalUserRef
contactExternalIdstringOptional

Filter to threads owned by this shop__contact.external_id.

Länge: 16
Beispielexample_contactExternalId
qstringOptional

ILIKE filter against title.

Länge: 0–200
Beispielexample_q
limitstringOptional

Maximum items (1–200, default 50). Sent as a query string.

Beispielexample_limit
offsetstringOptional

Number of items to skip (default 0). Sent as a query string.

Beispielexample_offset

Antwortschema

1 dokumentierter Statuscode

200Erfolg
itemsobject[]Pflicht
Jedes Array-Element:
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
totalstring | integerPflicht
Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer

Antwortbeispiel

application/json
{
  "items": [
    {
      "id": "ZUiVZuKwAaXNoT4nGUbnKR75",
      "title": "example_title",
      "isMarkedProblematic": false,
      "hasProblematicMessage": false,
      "insertedDate": "example_insertedDate",
      "updatedDate": "example_updatedDate",
      "metadata": {}
    }
  ]
}

Anfragebeispiel

GET /api/v1/chat/room

get
curl -X GET "https://api.bizkithub.com/api/v1/chat/room?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&source=example_source&externalUserRef=example_externalUserRef&contactExternalId=example_contactExternalId&q=example_q&limit=example_limit&offset=example_offset" \
  -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