ChatHistoryResponse
data object[]required
Array [
roleRole (string)required
User or Assistant
contentContent (string)required
Chat's content
timestampstring<date-time>required
Chat's timestamp
]
pagination object
anyOfanyOfanyOf
- PaginationMetaData
- null
total_countTotal Count (integer)required
Total number of records
returned_countReturned Count (integer)required
Number of messages in this response
has_moreHas More (boolean)required
Whether more messages exist
next_cursor object
Cursor for next page
- string
- null
string
prev_cursor object
Cursor for previous page
- string
- null
string
status_codeStatus Code (integer)
Default value:
200messageMessage (string)
Default value:
Chat history retrieved successfullyChatHistoryResponse
{
"data": [
{
"role": "string",
"content": "string",
"timestamp": "2024-07-29T15:51:28.071Z"
}
],
"pagination": {
"total_count": 0,
"returned_count": 0,
"has_more": true,
"next_cursor": "string",
"prev_cursor": "string"
},
"status_code": 200,
"message": "Chat history retrieved successfully"
}