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

# Mark all notifications as read

> Marks all notifications as read for the authenticated profile



## OpenAPI

````yaml https://swish.app/api/2026-07/.well-known/openapi post /notifications/read/all
openapi: 3.0.0
info:
  title: Swish API
  description: >-
    The Swish API provides endpoints for managing profiles, lists, items,
    subscriptions, notifications, orders, etc. All endpoints require
    authentication using a Bearer token. Responses follow a consistent structure
    with a `data` wrapper for successful responses and standardized error
    formats.
  version: 2026-07
  contact: {}
servers:
  - url: https://swish.app/api/2026-07
security: []
tags: []
paths:
  /notifications/read/all:
    post:
      tags:
        - Notifications
      summary: Mark all notifications as read
      description: Marks all notifications as read for the authenticated profile
      operationId: NotificationsController_markAllAsRead
      parameters: []
      responses:
        '200':
          description: All notifications marked as read successfully
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                  - properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/Notification'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - properties:
                      error:
                        allOf:
                          - $ref: '#/components/schemas/Error'
                          - properties:
                              message:
                                type: string
                                example: Validation failed
                              error:
                                type: string
                                example: Bad Request
                              statusCode:
                                type: number
                                example: 400
                              requestId:
                                type: string
                                example: 123e4567-e89b-12d3-a456-426614174000
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - properties:
                      error:
                        allOf:
                          - $ref: '#/components/schemas/Error'
                          - properties:
                              message:
                                type: string
                                example: Failed to authenticate request
                              error:
                                type: string
                                example: Unauthorized
                              statusCode:
                                type: number
                                example: 401
                              requestId:
                                type: string
                                example: 123e4567-e89b-12d3-a456-426614174000
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - properties:
                      error:
                        allOf:
                          - $ref: '#/components/schemas/Error'
                          - properties:
                              message:
                                type: string
                                example: >-
                                  You do not have permission to access this
                                  resource
                              error:
                                type: string
                                example: Forbidden
                              statusCode:
                                type: number
                                example: 403
                              requestId:
                                type: string
                                example: 123e4567-e89b-12d3-a456-426614174000
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - properties:
                      error:
                        allOf:
                          - $ref: '#/components/schemas/Error'
                          - properties:
                              message:
                                type: string
                                example: The requested resource was not found
                              error:
                                type: string
                                example: Not Found
                              statusCode:
                                type: number
                                example: 404
                              requestId:
                                type: string
                                example: 123e4567-e89b-12d3-a456-426614174000
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - properties:
                      error:
                        allOf:
                          - $ref: '#/components/schemas/Error'
                          - properties:
                              message:
                                type: string
                                example: An unexpected error occurred
                              error:
                                type: string
                                example: Internal Server Error
                              statusCode:
                                type: number
                                example: 500
                              requestId:
                                type: string
                                example: 123e4567-e89b-12d3-a456-426614174000
      security:
        - Swish API key: []
        - bearer: []
components:
  schemas:
    Response:
      type: object
      properties:
        data:
          type: object
          description: Response data
      required:
        - data
    Notification:
      type: object
      properties:
        id:
          type: string
          description: The ID of the notification
          example: 67a61d5561e4f9de302c02a1
        type:
          type: string
          description: >-
            The type of notification. Use this to look up localized title and
            message on the client.
          enum:
            - saved_product_price_drop
            - saved_product_back_in_stock
            - saved_product_low_in_stock
            - subscribed_product_price_drop
            - subscribed_product_back_in_stock
            - subscribed_product_low_in_stock
          example: saved_product_price_drop
        product:
          description: The product data associated with the notification
          allOf:
            - $ref: '#/components/schemas/NotificationProduct'
        variant:
          description: The variant data associated with the notification
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/NotificationVariant'
        context:
          description: Context for localization (market/country/language)
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/NotificationContext'
        metadata:
          type: object
          description: Metadata associated with the notification
          nullable: true
        read:
          type: boolean
          description: Whether the notification has been read
          example: false
        createdAt:
          type: string
          description: The date and time the notification was created
          example: '2025-01-01T10:00:00.000Z'
        updatedAt:
          type: string
          description: The date and time the notification was last updated
          example: '2025-01-01T10:00:00.000Z'
      required:
        - id
        - type
        - product
        - context
        - metadata
        - read
        - createdAt
        - updatedAt
    ErrorResponse:
      type: object
      properties:
        error:
          description: Error details
          allOf:
            - $ref: '#/components/schemas/Error'
      required:
        - error
    Error:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Something went wrong
        error:
          type: string
          description: The error type
          example: Not Found
        statusCode:
          type: number
          description: The HTTP status code of the error
          example: 404
        requestId:
          type: string
          description: The ID of the request that caused the error
          example: 123e4567-e89b-12d3-a456-426614174000
      required:
        - message
        - error
        - statusCode
        - requestId
    NotificationProduct:
      type: object
      properties:
        id:
          type: string
          example: gid://shopify/Product/123
        availableForSale:
          type: boolean
          example: true
        onlineStoreUrl:
          type: object
          example: https://example.com/products/sample
          nullable: true
        handle:
          type: string
          example: sample-product
        productType:
          type: object
          example: Shoes
          nullable: true
        tags:
          example:
            - sale
            - summer
          type: array
          items:
            type: string
        title:
          type: string
          example: Sample Product
        category:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ProductCategory'
        compareAtPriceRange:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ProductPriceRange'
        featuredImage:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/Image'
        priceRange:
          $ref: '#/components/schemas/ProductPriceRange'
        variantsCount:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/ProductVariantsCount'
      required:
        - id
        - availableForSale
        - handle
        - productType
        - tags
        - title
        - priceRange
    NotificationVariant:
      type: object
      properties:
        id:
          type: string
          example: gid://shopify/ProductVariant/456
        availableForSale:
          type: boolean
          example: true
        currentlyNotInStock:
          type: boolean
          example: false
        sku:
          type: object
          example: SKU-123
          nullable: true
        title:
          type: string
          example: Size 9
        compareAtPrice:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/NotificationMoney'
        image:
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/Image'
        price:
          $ref: '#/components/schemas/NotificationMoney'
        selectedOptions:
          type: array
          items:
            $ref: '#/components/schemas/ProductOption'
      required:
        - id
        - availableForSale
        - currentlyNotInStock
        - title
        - price
        - selectedOptions
    NotificationContext:
      type: object
      properties:
        marketContextType:
          type: object
          description: The market context type (e.g. 'country')
          example: null
          nullable: true
        marketContextValue:
          type: object
          description: The market context value (e.g. 'IE')
          example: null
          nullable: true
    ProductCategory:
      type: object
      properties:
        id:
          type: string
          example: gid://shopify/Category/1
        name:
          type: string
          example: Footwear
      required:
        - id
        - name
    ProductPriceRange:
      type: object
      properties:
        maxVariantPrice:
          $ref: '#/components/schemas/NotificationMoney'
        minVariantPrice:
          $ref: '#/components/schemas/NotificationMoney'
      required:
        - maxVariantPrice
        - minVariantPrice
    Image:
      type: object
      properties:
        id:
          type: string
          example: gid://shopify/Image/1
        url:
          type: string
          example: https://example.com/image.jpg
        altText:
          type: string
          example: Product image
          nullable: true
        thumbhash:
          type: string
          example: 1QcSHQRnh493V4dIh4eXh1h4kJUI
          nullable: true
      required:
        - id
        - url
    ProductVariantsCount:
      type: object
      properties:
        count:
          type: number
          example: 3
      required:
        - count
    NotificationMoney:
      type: object
      properties:
        amount:
          type: string
          example: '90.00'
        currencyCode:
          type: string
          example: USD
      required:
        - amount
        - currencyCode
    ProductOption:
      type: object
      properties:
        name:
          type: string
          example: Size
        value:
          type: string
          example: '9'
      required:
        - name
        - value
  securitySchemes:
    Swish API key:
      scheme: Bearer
      bearerFormat: JWT
      type: http
      description: Enter your JWT token

````

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