BizKitHub
getpostChatPubliczne API v1

/api/v1/chat/room

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

chatgetApiV1ChatRoom

Parametry

8 w query

Parametry query

· 8
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
kind"ai" | "internal" | "external"Opcjonalne
sourcestringOpcjonalne
Długość: 0–32
Przykładexample_source
externalUserRefstringOpcjonalne

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

Długość: 0–64
Przykładexample_externalUserRef
contactExternalIdstringOpcjonalne

Filter to threads owned by this shop__contact.external_id.

Długość: 16
Przykładexample_contactExternalId
qstringOpcjonalne

ILIKE filter against title.

Długość: 0–200
Przykładexample_q
limitstringOpcjonalne

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

Przykładexample_limit
offsetstringOpcjonalne

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

Przykładexample_offset

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane

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

Długość: 24
PrzykładZUiVZuKwAaXNoT4nGUbnKR75
kind"ai" | "internal" | "external"Wymagane
titlestringWymagane
sourcestring | nullWymagane
modelstring | nullWymagane
ownerContactExternalIdstring | nullWymagane

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 | nullWymagane

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 | nullWymagane
messageCountstring | integerWymagane
Jedna z 2 opcji:
Wariant 1
stringinteger
Domyślnie: 0
Wariant 2
integer
totalTokensstring | integerWymagane
Jedna z 2 opcji:
Wariant 1
stringinteger
Domyślnie: 0
Wariant 2
integer
lastMessageDatestring | nullWymagane
isMarkedProblematicbooleanWymagane

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

hasProblematicMessagebooleanWymagane

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

insertedDatestringWymagane
updatedDatestringWymagane
metadataobjectWymagane
totalstring | integerWymagane
Jedna z 2 opcji:
Wariant 1
stringinteger
Domyślnie: 0
Wariant 2
integer

Przykład odpowiedzi

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

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API