Skip to main content

Revoke Message

Brief Description

  • Simulate a user revoking a previously sent message.

Request Method

  • post

Request URL

  • {API_ADDRESS}/msg/revoke_msg
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringUsed for global trace tracking, suggested to use a unique timestamp per request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"userID": "9906953281",
"conversationID": "si_2699373280_9906953281",
"seq": 2
}
Field NameOptionalTypeDescription
userIDRequiredstringID of the user revoking the message; can be the message sender’s ID or app admin ID. In group chats, it can also be a user with a higher role.
conversationIDRequiredstringConversation ID where the message was sent.
seqRequiredstringSequence number of the message to revoke.

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Success Response Parameters Description

Parameter NameTypeDescription
errCodeintError code; 0 indicates success.
errMsgstringBrief error message, empty if none.
errDlterrDltDetailed error information, empty if none.
dataobjectGeneral data object, structure detailed below.
tokenstringReturned token, if applicable.
expireTimeSecondsstringToken expiration time in seconds, if applicable.

Failure Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Failure Response Parameters Description

Parameter NameTypeDescription
errCodeintError code, refer to global error code documentation
errMsgstringBrief error message
errDlterrDltDetailed error information