---
title: "Mark all messages as read"
method: POST
path: "/messenger/v1/messages/readAll"
tags: ["messages"]
---

# Mark all messages as read

`POST /messenger/v1/messages/readAll`

## Request

- Base URL: `https://{domain}.uspacy.ua`
- URL: `https://{domain}.uspacy.ua/messenger/v1/messages/readAll`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/uspacy/apis/messenger-service-2/docs/messenger/v1/messages/readAll/post.ts> (a function with typed inputs; its response is checked against the schema)

Marks all unread messages in a chat as read. Useful for quickly clearing unread message counts.

## Request body

- ChatIdDto
  - `chatId` string, required: Chat id

## Response `200`

Confirmation that all messages in the chat have been marked as read

- ChatIdDto[]
  - `chatId` string, required: Chat id

---

[API](https://skmtc.dev/uspacy/apis/messenger-service-2.md) - [All operations](https://skmtc.dev/uspacy/apis/messenger-service-2/llms.txt) - [OpenAPI document](https://skmtc.dev/uspacy/apis/messenger-service-2/revisions/699626a9e425?raw)
