---
title: "Set all messages as read"
method: POST
path: "/rts/messages/set-all-read/"
tags: ["rts_messages"]
---

# Set all messages as read

`POST /rts/messages/set-all-read/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/rts/messages/set-all-read/`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://my.angelcam.com/oauth/authorize/`, token URL `https://my.angelcam.com/oauth/token/`
    - Password, token URL `https://api.angelcam.com/oauth/token/`
    - Scopes: `messages_manage`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/rts/messages/set-all-read/post.ts> (a function with typed inputs; its response is checked against the schema)

Set all messages as read

## Response `200`

OK

- object
  - `set_as_read_count` number: Number of messages which were marked as read

## Other responses

- `401`: Missing or invalid authorization.
- `403`: Missing permission.

---

[API](https://skmtc.dev/angelcam/apis/angelcam-api.md) - [All operations](https://skmtc.dev/angelcam/apis/angelcam-api/llms.txt) - [OpenAPI document](https://skmtc.dev/angelcam/apis/angelcam-api/revisions/dd1cdc3f2c23?raw)
