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

# Create a new monitoring rule

> Create a new transaction monitoring rule with thresholds and actions



## OpenAPI

````yaml /olive-openapi.json post /compliance/rules
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /compliance/rules:
    post:
      tags:
        - Monitoring Rules
      summary: Create a new monitoring rule
      description: Create a new transaction monitoring rule with thresholds and actions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.CreateMonitoringRuleRequest'
        description: Monitoring Rule Details
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    handler.CreateMonitoringRuleRequest:
      type: object
      required:
        - action_on_trigger
        - notification_recipient
        - rule_name
        - status
      properties:
        action_on_trigger:
          type: string
          enum:
            - alert
            - block
            - review
        amount_threshold: {}
        daily_transaction_limit: {}
        description:
          type: string
        frequency_threshold: {}
        geolocation_check:
          type: boolean
        high_value_alert_threshold: {}
        max_transaction_amount: {}
        min_transaction_amount: {}
        notification_recipient:
          type: string
        rule_name:
          type: string
        status:
          type: string
          enum:
            - active
            - inactive
        suspicious_amount_threshold: {}
  securitySchemes:
    ApiKeyAuth:
      description: >-
        API Key for third-party integrations (WhatsApp, Smart PAY, VULT).
        Format: 'Bearer olive_live_xxxxxxxxxxxxx'
      type: apiKey
      name: Authorization
      in: header

````