CRBNai API
  1. 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
        GET
      • Post Chat Message
        POST
    • 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
      • Create Knowledge Bot chat
    • 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. Messages

Get Chat Messages

GET
/api/chats/{id}/messages
chatmessages
Get all chat messages, ordered by created date descending.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.crbnai.com/api/chats/550e8400-e29b-41d4-a716-446655440000/messages'
Response Response Example
200 - Success
[
  {
    "content": "Modi tempora sequi provident nobis. Dicta porro suscipit ducimus repellat cupiditate officiis. Asperiores at non ipsam voluptatum debitis voluptates aut suscipit expedita. Dolorum officia aut distinctio. Voluptas officia magni sequi necessitatibus.",
    "chat_id": "1414697c-6c23-4673-8c08-5f412f3943da",
    "role": "sit dolor Ut qui",
    "created_at": "2040-06-27T21:28:45.361Z",
    "id": "0e16dee9-5bef-42f9-bf31-dbd04ff070de"
  },
  {
    "content": "Neque perspiciatis unde nulla nisi soluta. Accusantium dolores velit explicabo nihil sunt facere alias alias.",
    "chat_id": "caab4979-160a-4c72-aa9d-b04aa6483e91",
    "role": "officia ullamco quis",
    "id": "af3acb1f-02f5-4a58-bbb0-4cd5d604639e",
    "created_at": "2047-04-21T21:14:08.849Z"
  },
  {
    "content": "A ea vitae iure ipsa ea non molestiae. Aut qui pariatur optio nisi vero et. Quo omnis voluptatum ut magni perspiciatis quia corrupti magnam. Porro nesciunt commodi ipsa eius fuga hic ducimus quaerat voluptates.",
    "chat_id": "846324d0-9c3b-4b73-be8f-b11c4eb9644d",
    "role": "dolor Excepteur adipisicing",
    "id": "b128ccff-ad99-4360-9a31-889526da5963",
    "created_at": "2094-12-15T04:36:00.439Z"
  },
  {
    "content": "Repellat debitis molestiae accusamus error fuga commodi sequi assumenda. Quia voluptatem ab sunt dolorem aperiam debitis. Ab culpa fugiat hic soluta pariatur dolores. Deleniti accusantium sint facere doloribus maiores.",
    "chat_id": "bbe89ce3-afde-4f64-8b86-52e3e39a0df6",
    "role": "proident cupidatat ullamco nulla dolore",
    "id": "61c0ff36-f44e-4498-a969-58ef551d2cce",
    "created_at": "2090-07-08T13:40:13.289Z"
  }
]

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Example:
550e8400-e29b-41d4-a716-446655440000

Responses

🟢200OK
application/json
Body
array of:
id
string <uuid>
optional
UUID representing this chat message.
content
string 
required
Content of the chat message.
created_at
string <date-time>
optional
Date (ISO 8601) that the chat message was created at.
chat_id
string <uuid>
required
UUID of the chat that this chat message belongs to.
role
string 
required
Role of the user that this chat belongs to.
🟠404Record Not Found
Previous
Delete API Key
Next
Post Chat Message
Built with