---
title: "[BETA] set disappearing messages"
method: POST
path: "/instances/{id}/client/action/set-disappearing-messages"
tags: ["chat"]
---

# [BETA] set disappearing messages

`POST /instances/{id}/client/action/set-disappearing-messages`

Set the disappearing-messages timer on a chat. 0 disables; 86400 = 24h, 604800 = 7d, 7776000 = 90d. Groups require admin. Note: This endpoint is currently in beta and may change without notice.

## Path parameters

- `id` integer, required

## Request body

- object
  - `chatId` string, required — Chat ID <countrycode_short><usernumber>@c.us or @g.us for groups
  - `duration` integer, required — Timer in seconds. 0 disables.

## Response `200`

Disappearing messages timer set successfully

- object
  - `instanceId` string — ID of the instance
  - `data` object
    - `chatId` string
    - `disappearingMessages` object
      - `duration` integer — Timer in seconds. 0 = off.
      - `settingTimestamp` integer, nullable — Unix timestamp of last change.
      - `isGroup` boolean
  - `status` 'success' | 'error'

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/versions/1e2cc7c12090/schema)
