- README
- Authentication
- Guides
- API Keys
- Chats
- Documents
- Knowledge Bots
Get Chat Messages
GET
/api/chats/{id}/messages
chatmessages
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
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.crbnai.com/api/chats/550e8400-e29b-41d4-a716-446655440000/messages'
Responses
🟢200OK
application/json
Body
array of:
id
string <uuid>
optional
content
string
required
created_at
string <date-time>
optional
chat_id
string <uuid>
required
role
string
required
Example
[
{
"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"
}
]
🟠404Record Not Found
Modified at 2023-12-13 13:22:25