Skip to main content

Delete Channel Message

https://api.deadsimplechat.com/consumer/api/v2/chatroom/:roomId/channel/:channelId/message/:messageId?auth=
info

The auth query parameter is your private key. You can find it in your Dashboard under Developer -> Private Key.

Send a HTTP Delete Request to delete a channel message.

Query Parameters

ParameterDescriptionData Type
authGo to Dashboard -> Developer -> Private Key is your authString

Path Parameters

ParameterDescriptionData Type
roomIdThe unique identifier for the chat roomString
channelIdThe unique identifier for the channelString
messageId_id of the message you want to deleteString

Response

Success: 200

{
"success": true,
"message": "channel message deleted"
}

Bad Request: 400

{
"success": false,
"message": "message of the specified if not found"
}

Example Request

  • This example demonstrates a curl request to delete a channel message.
  • The roomId is set to 'G1M_aMHjR'.
  • The channelId is set to '65a5795896685a510697a454'.
  • The messageId is set to '65a58d357fb137599194072f'.
  • The private key (used for auth) is set to '32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361'.
curl -X DELETE "https://api.deadsimplechat.com/consumer/api/v2/chatroom/G1M_aMHjR/channel/65a5795896685a510697a454/message/65a58d357fb137599194072f?auth=32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361"