> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark All Notifications as Read

> Mark all unread notifications as read for the authenticated user

Marks all unread notifications as read for the currently authenticated user. Only notifications that are currently `isRead: false` are updated.

> [!NOTE]
>
> This endpoint requires an authenticated user. Include a valid `Authorization: Bearer <accessToken>` header.

## Response

Returns HTTP `200` with the number of notifications that were updated:

**markedAsRead** `number`

The count of notifications that were updated from unread to read. Returns `0` if there were no unread notifications.

**Example:**

```json theme={null}
{
  "markedAsRead": 12
}
```

## Error Responses

> [accordion] Missing token — 401
>
> No `Authorization` header was sent. The body is `text/plain`, not JSON:
>
> ```text theme={null}
> Unauthorized
> ```

> [accordion] Expired or invalid token — 403
>
> The header was sent but the token failed verification. Refresh the access
> token and retry. The body is `text/plain`, not JSON:
>
> ```text theme={null}
> Forbidden
> ```

## See Also

* [Mark Single Notification as Read](https://docs.sublay.io/v7/api-reference/app-notifications/mark-as-read.md)
* [`useAppNotifications` hook](https://docs.sublay.io/v7/hooks/app-notifications/use-app-notifications)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.