DELETE
/
message
/
batch
curl --request DELETE \
  --url https://chat.zoko.io/v2/message/batch \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "messages": [
    "<string>"
  ]
}'
{
  "deleted": 43,
  "failed": 7,
  "messages": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "message deleted",
      "description": "message {id} deleted"
    }
  ]
}

Authorizations

apikey
string
headerrequired

Authentication is done via apikey provided for your account

Include the following in your request header

apikey: "your_apikey_here"

Body

application/json
messages
string[]
required

IDs of messages to be deleted

Response

200 - application/json
deleted
integer

number of messages deleted

failed
integer

number of messages failed

messages
object[]

message deletion details