Skip to content

[Conversation] Delete Conversation or Messages

  • Endpoint Path: /api/v2/conversation/delete
  • Method: DELETE
  • Request: application/json

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidrequiredrequired
X-Fresns-Aid-Tokenrequiredrequired
X-Fresns-Uidrequiredrequired
X-Fresns-Uid-Tokenrequiredrequired

Body Params

Parameter NameTypeRequiredDescription
typeStringrequiredconversation or message
conversationIdNumberoptional
messageIdsStringoptionalseparated by English commas for multiple id

Request Description

  • Choose either conversationId or messageIds to pass as a parameter, but not both.
  • type = conversation: Use the conversationId parameter to set the current conversation as deleted and delete all messages belonging to the current user in the conversation.
  • type = message: Use the messageIds parameter to delete messages with specified IDs in bulk.

Return

json
{
    "code": 0,
    "message": "ok",
    "data": null
}

Released under the Apache-2.0 License