BizKitHub
getpostChatVeřejné API v1

/api/v1/chat/room

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

chatgetApiV1ChatRoom

Parametry

8 v query

Parametry v query

· 8
apiKeystringPovinné

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
kind"ai" | "internal" | "external"Volitelné
sourcestringVolitelné
Délka: 0–32
Příkladexample_source
externalUserRefstringVolitelné

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

Délka: 0–64
Příkladexample_externalUserRef
contactExternalIdstringVolitelné

Filter to threads owned by this shop__contact.external_id.

Délka: 16
Příkladexample_contactExternalId
qstringVolitelné

ILIKE filter against title.

Délka: 0–200
Příkladexample_q
limitstringVolitelné

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

Příkladexample_limit
offsetstringVolitelné

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

Příkladexample_offset

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
itemsobject[]Povinné
Každá položka pole:
idstringPovinné

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

Délka: 24
PříkladZUiVZuKwAaXNoT4nGUbnKR75
kind"ai" | "internal" | "external"Povinné
titlestringPovinné
sourcestring | nullPovinné
modelstring | nullPovinné
ownerContactExternalIdstring | nullPovinné

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 | nullPovinné

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 | nullPovinné
messageCountstring | integerPovinné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer
totalTokensstring | integerPovinné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer
lastMessageDatestring | nullPovinné
isMarkedProblematicbooleanPovinné

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

hasProblematicMessagebooleanPovinné

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

insertedDatestringPovinné
updatedDatestringPovinné
metadataobjectPovinné
totalstring | integerPovinné
Jedna z 2 možností:
Varianta 1
stringinteger
Výchozí: 0
Varianta 2
integer

Ukázka odpovědi

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

Ukázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč