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

# List all notifications

> Retrieve a list of notifications for the authenticated team.



## OpenAPI

````yaml get /notifications
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /notifications:
    get:
      tags:
        - Notifications
      summary: List all notifications
      description: Retrieve a list of notifications for the authenticated team.
      operationId: listNotifications
      parameters:
        - schema:
            type: string
            nullable: true
            description: >-
              Cursor for pagination, representing the last item from the
              previous page
            example: '20'
          required: false
          description: >-
            Cursor for pagination, representing the last item from the previous
            page
          in: query
          name: cursor
        - schema:
            type: number
            minimum: 1
            maximum: 100
            description: Number of notifications to return per page (1-100)
            example: 20
          required: false
          description: Number of notifications to return per page (1-100)
          in: query
          name: pageSize
        - schema:
            anyOf:
              - type: string
                enum:
                  - unread
                  - read
                  - archived
              - type: array
                items:
                  type: string
                  enum:
                    - unread
                    - read
                    - archived
            description: >-
              Filter by notification status. Can be a single status or array of
              statuses. unread = new notifications, read = viewed but not
              dismissed, archived = dismissed from view
            example:
              - unread
              - read
          required: false
          description: >-
            Filter by notification status. Can be a single status or array of
            statuses. unread = new notifications, read = viewed but not
            dismissed, archived = dismissed from view
          in: query
          name: status
        - schema:
            type: string
            nullable: true
            format: uuid
            description: Filter notifications by specific user ID
            example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          required: false
          description: Filter notifications by specific user ID
          in: query
          name: userId
        - schema:
            type: integer
            nullable: true
            minimum: 1
            maximum: 10
            description: Filter notifications by priority level (1-10)
            example: 5
          required: false
          description: Filter notifications by priority level (1-10)
          in: query
          name: priority
        - schema:
            type: integer
            nullable: true
            minimum: 1
            maximum: 10
            description: >-
              Filter notifications by maximum priority level (priority <=
              maxPriority). Use 3 for user-facing notifications only.
            example: 3
          required: false
          description: >-
            Filter notifications by maximum priority level (priority <=
            maxPriority). Use 3 for user-facing notifications only.
          in: query
          name: maxPriority
      responses:
        '200':
          description: Retrieve a list of notifications for the authenticated team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationsResponseSchema'
components:
  schemas:
    NotificationsResponseSchema:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/NotificationSchema'
          description: Array of notifications
        meta:
          type: object
          properties:
            cursor:
              type: string
              nullable: true
              description: Cursor for pagination (null if no more pages)
              example: '40'
            hasPreviousPage:
              type: boolean
              description: Whether there are previous pages available
              example: true
            hasNextPage:
              type: boolean
              description: Whether there are more pages available
              example: false
          required:
            - cursor
            - hasPreviousPage
            - hasNextPage
          description: Pagination metadata
      required:
        - data
        - meta
    NotificationSchema:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the notification
          example: b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2
        createdAt:
          type: string
          description: ISO timestamp when the notification was created
          example: '2024-04-15T09:00:00.000Z'
        teamId:
          type: string
          format: uuid
          description: Unique identifier of the team
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        userId:
          type: string
          nullable: true
          format: uuid
          description: Unique identifier of the user (if applicable)
          example: c2d3e4f5-a6b7-8901-bcde-f23456789012
        type:
          type: string
          description: Type of notification
          example: transactions_created
        priority:
          type: integer
          minimum: 1
          maximum: 10
          description: >-
            Priority level of the notification (1-3 = user notifications, 4-10 =
            insights)
          example: 3
        source:
          type: string
          enum:
            - system
            - user
          description: Source of the notification
          example: system
        status:
          type: string
          enum:
            - unread
            - read
            - archived
          description: Current status of the notification
          example: unread
        metadata:
          type: object
          additionalProperties:
            nullable: true
          description: Additional metadata for the notification
          example:
            transactionCount: 5
            dateRange:
              from: '2024-04-01'
              to: '2024-04-15'
        lastUsedAt:
          type: string
          nullable: true
          description: ISO timestamp when the notification was last used by the system
          example: '2024-04-15T11:00:00.000Z'
      required:
        - id
        - createdAt
        - teamId
        - userId
        - type
        - priority
        - source
        - status
        - metadata
        - lastUsedAt
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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