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

# Mark notifications as viewed. When no ids are provided, marks all of the authenticated user's notifications as viewed.

> Authentication is needed to change notifications. Without a token, makes no changes and returns zero unread count.



## OpenAPI

````yaml /api-reference/openapi.json post /app.rocksky.notification.updateSeen
openapi: 3.1.0
info:
  title: Rocksky XRPC API
  version: 1.0.0
  description: >-
    Generated from the registered Rocksky XRPC handlers and current lexicons.
    Provider-defined payloads remain open schemas. Some handlers return empty
    fallback objects on service failures. This reference describes the
    repository implementation; production may run an earlier revision.
  license:
    name: MIT License
    identifier: MIT
servers:
  - url: https://api.rocksky.app/xrpc
    description: Rocksky API
security: []
paths:
  /app.rocksky.notification.updateSeen:
    post:
      tags:
        - app.rocksky.notification
      summary: >-
        Mark notifications as viewed. When no ids are provided, marks all of the
        authenticated user's notifications as viewed.
      description: >-
        Authentication is needed to change notifications. Without a token, makes
        no changes and returns zero unread count.
      operationId: app.rocksky.notification.updateSeen
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    The ids of the notifications to mark as viewed. Omit to mark
                    all.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  unreadCount:
                    type: integer
                    description: The number of unread notifications remaining.
                required:
                  - unreadCount
        '400':
          description: Invalid XRPC request or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
        default:
          description: XRPC error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
      security:
        - {}
        - Bearer: []
components:
  schemas:
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Rocksky bearer token.

````

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