> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get v1panelriskrules

> Requires risk.read. Thresholds are in each metric's own unit.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml get /v1/panel/risk/rules
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/risk/rules:
    get:
      tags:
        - panel
      description: Requires risk.read. Thresholds are in each metric's own unit.
      operationId: listPanelAnomalyRules
      responses:
        '200':
          description: Anomaly rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelAnomalyRuleList'
        '403':
          $ref: '#/components/responses/Problem'
components:
  schemas:
    PanelAnomalyRuleList:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/PanelAnomalyRule'
    PanelAnomalyRule:
      type: object
      required:
        - metric
        - enabled
        - windowSeconds
        - warnThreshold
        - alertThreshold
        - minimumSample
        - updatedAt
      properties:
        metric:
          $ref: '#/components/schemas/PanelAnomalyMetric'
        enabled:
          type: boolean
        windowSeconds:
          type: integer
          format: int64
          minimum: 300
        warnThreshold:
          type: integer
          format: int64
          minimum: 1
          description: 'In the metric''s own unit: bytes, minor units, or a count.'
        alertThreshold:
          type: integer
          format: int64
          minimum: 1
        minimumSample:
          type: integer
          minimum: 0
        updatedAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
    PanelAnomalyMetric:
      type: string
      enum:
        - traffic
        - purchase
        - refund
        - referral
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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