CRBNai API
  1. Chats
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
      • Prepare Document Upload
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
        GET
      • Create Knowledge Bot chat
        POST
    • Chats - deprecated
      • Chat with a Knowledge Bot
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. Chats

Get all Knowledge Bot chats

GET
/api/knowledge-bots/{knowledgeBotId}/chats
Get all chats that belong to a Knowledge Bot.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.crbnai.com/api/knowledge-bots//chats?externalId'
Response Response Example
[
    {
        "created_at": "2023-11-28T23:28:51.032365+00:00",
        "id": "kbc_01hgc474tmw33t3kfnp16mgmdp",
        "knowledge_bot_id": "kb_01ha1ntvyq68jxezgnkwr63wm1",
        "last_message_at": "2023-11-28T23:28:51.032365+00:00",
        "owner_id": "user_01ha1nt7y4ee0gh7p19qfyqm6p",
        "updated_at": "2023-11-28T23:28:51.032365+00:00",
        "user_metadata": null,
        "external_id": null
    }
]

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
knowledgeBotId
string 
required
Query Params
externalId
string 
optional
Allows filtering by an externalId that was provided during the chat creation.

Responses

🟢200OK
application/json
Body
object {0}
Previous
Post a message to a Knowlege Bot chat
Next
Create Knowledge Bot chat
Built with