Delete Livechat Message

Remove a specific livechat message.

HTTP MethodURLRequires Auth

DELETE

/api/v1/livechat/message/:_id

no

Path Variables

KeyExample ValueDescription

_id*

ZKWP8LfGnRHQ3ozWa

The message ID.

Body

KeyExample ValueDescription

token*

54fc5544030b

The visitor token.

rid*

hGFwSKA28nRKut3pD

The room ID.

Example Call

curl --location --request DELETE 'http://localhost:3000/api/v1/livechat/message/mz6TKjsvZiausYjev' \
--header 'Content-Type: application/json' \
--data '{
    "token": "54fc5544030bcecda053311cb6b989",
    "rid": "hGFwSKA28nRKut3pD"
}'

Example Response

{
  "message": {
    "_id": "ZKWP8LfGnRHQ3ozWa",
    "ls": "2018-09-14T13:31:33.279Z"
  },
  "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.