> ## 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 about requests shared with the user

> Newest first, across workspaces; only requests the user is still an active recipient of.



## OpenAPI

````yaml /openapi.yaml get /collaboration/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:
  /collaboration/notifications:
    get:
      tags:
        - Collaboration
      summary: List notifications about requests shared with the user
      description: >-
        Newest first, across workspaces; only requests the user is still an
        active recipient of.
      operationId: collaboration_notifications#index
      parameters:
        - 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/collaboration_notification'
        '401':
          description: Unauthorized
      security:
        - apiKey: []
components:
  schemas:
    collaboration_notification:
      type: object
      description: >-
        A notification about a collaboration request shared with the user (e.g.
        a mention in its comments).
      required:
        - id
        - event_type
        - collaboration_request
        - created_at
      properties:
        id:
          type: integer
        event_type:
          type: string
          enum:
            - mention
        read_at:
          type: string
          format: date-time
          nullable: true
        collaboration_request:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            request_type:
              type: string
              enum:
                - project_items_edit
                - purchase_order_edit
        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
    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

````

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