---
title: "🗄 Archive/Unarchive chat"
method: POST
path: "/chats/{ChatID}"
tags: ["Chats"]
---

# 🗄 Archive/Unarchive chat

`POST /chats/{ChatID}`

This method is responsible for archiving or unarchiving chats

## Path parameters

- `ChatID` string, required — Chat ID

## Request body

- ArchiveChatRequest
  - `archive` boolean — Archive or unarchive chat

## Response `200`

OK

- ResponseSuccess
  - `success` boolean

## Other responses

- `400` — Wrong request parameters
- `401` — Need channel authorization for archive/unarchive chat
- `404` — Specified chat not found
- `500` — Internal Error

---

[API](https://skmtc.dev/whapi/apis/whatsapp-api.md) · [All operations](https://skmtc.dev/whapi/apis/whatsapp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whapi/whatsapp-api/revisions/40ab05abffdb/schema)
