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

# List recent notifications for the authenticated user



## OpenAPI

````yaml /openapi.json get /v1/notifications
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/notifications:
    get:
      tags:
        - Notifications
      summary: List recent notifications for the authenticated user
      parameters:
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: Filter unread only
          required: false
          description: Filter unread only
          name: unread
          in: query
      responses:
        '200':
          description: Recent notifications (max 50)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Notification'
        '401':
          description: Unauthorized
      security:
        - BearerAuth: []
components:
  schemas:
    Notification:
      type: object
      properties:
        id:
          type: string
          description: Notification ID
        type:
          type: string
          example: machine_expiry
        resource_type:
          type: string
          example: machine
        resource_id:
          type: string
        title:
          type:
            - string
            - 'null'
        body:
          type:
            - string
            - 'null'
        severity:
          type:
            - string
            - 'null'
          enum:
            - info
            - warning
            - critical
            - null
        context:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
        read_at:
          type:
            - number
            - 'null'
          description: Timestamp when read, null if unread
        created_at:
          type: number
      required:
        - id
        - type
        - resource_type
        - resource_id
        - title
        - body
        - severity
        - context
        - read_at
        - created_at
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````