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

# Mark All Read

> Mark all (or type-filtered) unread notifications as read.

Returns the count of rows marked and the new total unread count.
Body is optional — an empty body {} or no body at all clears everything.



## OpenAPI

````yaml /openapi.json post /v1/me/notifications/feed/read-all
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/me/notifications/feed/read-all:
    post:
      tags:
        - notifications
      summary: Mark All Read
      description: |-
        Mark all (or type-filtered) unread notifications as read.

        Returns the count of rows marked and the new total unread count.
        Body is optional — an empty body {} or no body at all clears everything.
      operationId: mark_all_read_v1_me_notifications_feed_read_all_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/ReadAllRequest'
                - type: 'null'
              title: Body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReadAllResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ReadAllRequest:
      description: |-
        Optional body for POST /me/notifications/feed/read-all.

        `type` is an optional prefix filter (e.g. 'prediction.alert.fired').
        Omit or send {} to clear all unread notifications.
      properties:
        type:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          title: Type
      title: ReadAllRequest
      type: object
    ReadAllResponse:
      properties:
        marked:
          title: Marked
          type: integer
        unread_count:
          title: Unread Count
          type: integer
      required:
        - marked
        - unread_count
      title: ReadAllResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````