Skip to main content

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
    anyOf
    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

    anyOf
    string
    prev_cursor object

    Cursor for previous page

    anyOf
    string
    status_codeStatus Code (integer)
    Default value: 200
    messageMessage (string)
    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"
    }