Skip to main content

ChatHistoryResponse

data object[]required
  • Array [
  • roleRolerequired

    User or Assistant

    contentContentrequired

    Chat's content

    timestampdate-timerequired

    Chat's timestamp

  • ]
  • pagination object
    anyOf
    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

    anyOf
    string
    prev_cursor object

    Cursor for previous page

    anyOf
    string
    status_codeStatus Code
    Default value: 200
    messageMessage
    Default value: Chat history retrieved successfully
    ChatHistoryResponse
    {
    "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"
    }