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

# List notifications



## OpenAPI

````yaml /openapi.yaml get /notifications
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /notifications:
    get:
      tags:
        - Notification
      summary: List notifications
      operationId: notifications#index
      parameters:
        - name: X-Workspace-ID
          in: header
          required: true
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/notification'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    notification:
      type: object
      properties:
        id:
          type: integer
        event_type:
          type: string
        read_at:
          type: string
          format: date-time
          nullable: true
        subject_type:
          type: string
        subject_id:
          type: integer
        subject:
          nullable: true
          description: >-
            The record the notification is about; its shape depends on
            `subject_type`.
          oneOf:
            - $ref: '#/components/schemas/notification_comment'
        created_at:
          type: string
          format: date-time
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    notification_comment:
      type: object
      description: A notification's subject when `subject_type` is Comment.
      properties:
        id:
          type: integer
        thread_id:
          type: integer
          description: The root comment of the thread.
        body:
          type: string
        author:
          $ref: '#/components/schemas/notification_author'
        target:
          $ref: '#/components/schemas/comment_target'
        project_id:
          type: integer
          nullable: true
          description: >-
            The project to open, for project, project_item and baseline_item
            targets.
    notification_author:
      type: object
      properties:
        id:
          type: integer
        email:
          type: string
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
    comment_target:
      type: object
      required:
        - type
        - id
      properties:
        type:
          type: string
          enum:
            - project
            - project_item
            - product_item
            - baseline_item
            - collaboration_request
        id:
          type: integer
        identifier:
          type: string
          description: Present for project_item, product_item and baseline_item targets
        package_id:
          type: integer
          description: Present for baseline_item targets
        name:
          type: string
          description: Present for collaboration_request targets
        request_type:
          type: string
          enum:
            - project_items_edit
            - purchase_order_edit
          description: Present for collaboration_request targets
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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