---
title: "Mark Read"
method: POST
path: "/notifications/mark-read"
tags: ["notifications"]
---

# Mark Read

`POST /notifications/mark-read`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/notifications/mark-read`
- Auth: none declared

Set `read_at` on a list of notifications, or all of the user's unread.

Always scopes the UPDATE to `user_id = current_user` so a malicious
client can't clear another user's inbox by guessing notification IDs.

## Request body

- MarkReadRequest
  - `ids` string[], nullable
  - `all` boolean
  - `trip_id` string, uuid, nullable
  - `scope` string, nullable
  - `target_id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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