> ## 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.

# Get Notification Rule

> Get a single notification rule by ID.



## OpenAPI

````yaml https://hub.griff.services/documentation/json get /notifications/rules/{id}
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/rules/{id}:
    get:
      tags:
        - notifications
      summary: Get Notification Rule
      description: Get a single notification rule by ID.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/NotificationRuleMonitor'
        '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:
  schemas:
    NotificationRuleMonitor:
      allOf:
        - type: object
          required:
            - id
            - organizationId
            - monitorId
            - integrationName
            - trigger
            - routing
            - cooldownMinutes
            - enabled
            - createdAt
            - updatedAt
          properties:
            id:
              type: string
            organizationId:
              type: string
            monitorId:
              type: string
            integrationId:
              type: string
            integrationName:
              type: string
            trigger:
              anyOf:
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - run_failed
                - type: object
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      enum:
                        - run_recovered
                - type: object
                  required:
                    - type
                    - threshold
                  properties:
                    type:
                      type: string
                      enum:
                        - consecutive_failures
                    threshold:
                      type: number
                      minimum: 1
                - type: object
                  required:
                    - type
                    - threshold
                    - window_minutes
                  properties:
                    type:
                      type: string
                      enum:
                        - success_rate_below
                    threshold:
                      type: number
                      minimum: 0
                      maximum: 100
                    window_minutes:
                      type: number
                      minimum: 1
                - type: object
                  required:
                    - type
                    - threshold_ms
                    - percentile
                    - window_minutes
                  properties:
                    type:
                      type: string
                      enum:
                        - latency_above
                    threshold_ms:
                      type: number
                      minimum: 0
                    percentile:
                      anyOf:
                        - type: string
                          enum:
                            - p50
                        - type: string
                          enum:
                            - p95
                        - type: string
                          enum:
                            - p99
                    window_minutes:
                      type: number
                      minimum: 1
            routing:
              anyOf:
                - type: object
                  required:
                    - channelType
                    - channel
                  properties:
                    channelType:
                      type: string
                      enum:
                        - slack
                    channel:
                      type: string
                - type: object
                  required:
                    - channelType
                    - toAddresses
                  properties:
                    channelType:
                      type: string
                      enum:
                        - email
                    toAddresses:
                      type: array
                      items:
                        type: string
                - type: object
                  required:
                    - channelType
                  properties:
                    channelType:
                      type: string
                      enum:
                        - webhook
            cooldownMinutes:
              type: number
              minimum: 0
            enabled:
              type: boolean
            lastTriggeredAt:
              type: string
              format: date-time
            createdAt:
              type: string
              format: date-time
            updatedAt:
              type: string
              format: date-time
        - type: object
          required:
            - monitor
          properties:
            monitor:
              type: object
              required:
                - id
                - name
                - version
                - frequency
              properties:
                id:
                  type: string
                name:
                  type: string
                version:
                  type: string
                frequency:
                  type: object
                  required:
                    - every
                    - unit
                  properties:
                    every:
                      type: number
                    unit:
                      type: string
                      enum:
                        - MINUTE
                        - HOUR
                        - DAY
                locations:
                  type: array
                  items:
                    type: string
      title: NotificationRuleMonitor
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````