Get Paginated Conversation List for the Current User
Brief Description
- Retrieve the paginated list of conversations for the current user.
Request Method
post
Request URL
http://x.x.x.x:10002/conversation/get_owner_conversation
Header
Header Name | Example Value | Required | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | The operationID is used for global tracing. |
token | eyJhbxxxx3Xs | Required | string | Admin token |
Request Parameter Example
{
"userID": "1008432211",
"pagination": {
"pageNumber": 1,
"showNumber": 20
}
}
Field Name | Required | Type | Description |
---|---|---|---|
userID | Required | string | Current user ID. |
pagination | Required | object | Pagination parameters structure. |
pagination.pageNumber | Required | string | Current page number, starting from 1. |
pagination.showNumber | Required | string | Number of records per page. |
Successful Response Example
{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": {
"total": 38,
"conversations": [
{
"ownerUserID": "1008432211",
"conversationID": "sg_1012900607",
"recvMsgOpt": 0,
"conversationType": 3,
"userID": "",
"groupID": "1012900607",
"isPinned": false,
"attachedInfo": "",
"isPrivateChat": false,
"groupAtType": 0,
"ex": "",
"burnDuration": 0,
"minSeq": 0,
"maxSeq": 184,
"msgDestructTime": 0,
"latestMsgDestructTime": -62135596800000,
"isMsgDestruct": false
},
{
"ownerUserID": "1008432211",
"conversationID": "sg_1084800774",
"recvMsgOpt": 0,
"conversationType": 3,
"userID": "",
"groupID": "1084800774",
"isPinned": false,
"attachedInfo": "",
"isPrivateChat": false,
"groupAtType": 0,
"ex": "",
"burnDuration": 30,
"minSeq": 0,
"maxSeq": 0,
"msgDestructTime": 604800,
"latestMsgDestructTime": 1695265099982,
"isMsgDestruct": false
}
]
}
}
Successful Response Parameters Description
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, 0 indicates success. |
errMsg | string | Brief error message, empty if there is no error. |
errDlt | string | Detailed error message, empty if there is no error. |
data | object | Common data object, see below for the specific structure. |
total | string | Total number of conversations. |
conversations | array | List of conversations. |
Failed Response Example
{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}
Failed Response Parameters Description
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, refer to the global error code documentation for details. |
errMsg | string | Brief error message. |
errDlt | string | Detailed error message. |