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

# List Events by Rule

> Return notification events for a rule, optionally filtered by integration ID.



## OpenAPI

````yaml https://hub.griff.services/documentation/json get /notifications/events/by-rule
openapi: 3.1.0
info:
  title: Griffin Hub API
  description: API for managing and running test monitors
  version: 1.0.0
servers:
  - url: https://hub.griff.services
    description: Local development server
  - url: http://localhost:3000
    description: Local development server
security:
  - bearerAuth: []
tags:
  - name: monitors
    description: Test monitor management endpoints
  - name: runs
    description: Test run management endpoints
  - name: metrics
    description: Metrics and health summary endpoints
paths:
  /notifications/events/by-rule:
    get:
      tags:
        - notifications
      summary: List Events by Rule
      description: >-
        Return notification events for a rule, optionally filtered by
        integration ID.
      parameters:
        - schema:
            type: string
          in: query
          name: ruleId
          required: true
        - schema:
            type: string
          in: query
          name: integrationId
          required: false
        - schema:
            type: number
            minimum: 1
            maximum: 100
          in: query
          name: limit
          required: false
        - schema:
            anyOf:
              - type: string
                enum:
                  - delivered
              - type: string
                enum:
                  - failed
              - type: string
                enum:
                  - pending
          in: query
          name: status
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - ruleId
                        - triggerReason
                        - channelsNotified
                        - deliveryStatus
                        - createdAt
                      properties:
                        id:
                          type: string
                        ruleId:
                          type: string
                        runId:
                          type: string
                        triggerReason:
                          type: string
                        channelsNotified:
                          type: object
                          additionalProperties:
                            anyOf:
                              - type: object
                                required:
                                  - channelType
                                properties:
                                  channelType:
                                    type: string
                                    enum:
                                      - slack
                                  thread_ts:
                                    type: string
                              - type: object
                                required:
                                  - channelType
                                properties:
                                  channelType:
                                    type: string
                                    enum:
                                      - email
                              - type: object
                                required:
                                  - channelType
                                properties:
                                  channelType:
                                    type: string
                                    enum:
                                      - webhook
                        deliveryStatus:
                          type: object
                          additionalProperties:
                            type: object
                            required:
                              - status
                            properties:
                              status:
                                anyOf:
                                  - type: string
                                    enum:
                                      - pending
                                  - type: string
                                    enum:
                                      - delivered
                                  - type: string
                                    enum:
                                      - failed
                              responseCode:
                                type: number
                              messageId:
                                type: string
                              error:
                                type: string
                              attemptedAt:
                                type: string
                                format: date-time
                        createdAt:
                          type: string
                          format: date-time
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '502':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````