CRBNai API
  1. Chat Messages
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
          GET
        • Post a message to a Knowlege Bot chat
          POST
      • 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. Chat Messages

Get Messages of a Knowledge Bot chat

GET
/api/knowledge-bots/{knowledgeBotId}/chats/{chatId}/messages
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.crbnai.com/api/knowledge-bots//chats//messages'
Response Response Example
[
    {
        "chat_id": "kbc_01hgc474tmw33t3kfnp16mgmdp",
        "content": "Example Response [dsec01hdnmmgzq7a6wr8j0n3wvny1y]",
        "created_at": "2023-11-28T23:28:54.250641+00:00",
        "id": "kbcm_01hgc477z2fx3dvyv8expbmvx6",
        "role": "assistant"
    },
    {
        "chat_id": "kbc_01hgc474tmw33t3kfnp16mgmdp",
        "content": "Example Question",
        "created_at": "2023-11-28T23:28:52.396634+00:00",
        "id": "kbcm_01hgc47659rw7s3ce33vkbvbkd",
        "role": "user"
    }
]

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
knowledgeBotId
string 
required
chatId
string 
required

Responses

🟢200OK
application/json
Body
object {0}
Modified at 2023-11-28 23:32:50
Previous
Prepare Document Upload
Next
Post a message to a Knowlege Bot chat
Built with