ChatHistoryResponse
data object[]required
Array [
roleRolerequired
User or Assistant
contentContentrequired
Chat's content
timestampdate-timerequired
Chat's timestamp
]
pagination object
anyOfanyOfanyOf
- PaginationMetaData
- null
total_countTotal Countrequired
Total number of records
returned_countReturned Countrequired
Number of messages in this response
has_moreHas Morerequired
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
Default value:
200messageMessage
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"
}