DELETE Request

This method allow to delete message to a specific channel.

Before starting, make sure you added message_save into write privileges. See the Application access and privileges section.

DELETE Message

POST https://api.twake.app/api/v1/messages/remove

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Basic base64(public_id:private_api_key)

Request Body

Name
Type
Description

message

object

Require channel_id and content, see the body section

group_id

string

See the group_id and the channel_id section

{
    "result": {
        "channel_id": "--", // Channel id
        "id": "--" // Deleted message id
    }
}

Body example:

{
	"group_id": "---", 
	"message": {
		"channel_id": "---",
		"id": "--" // Message id that you want to delete
	}
}

Last updated