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

# Create rule



## OpenAPI

````yaml openapi/transactions.yaml post /transactions/rules
openapi: 3.0.3
info:
  title: TXCloud TransactionGuard API
  version: 1.0.0
  description: |
    Real-time transaction risk scoring to prevent payment fraud.
    Analyzes transaction patterns, user behavior, and recipient risk.
servers:
  - url: https://api.txcloud.io/v1
  - url: https://sandbox.api.txcloud.io/v1
security:
  - BearerAuth: []
tags:
  - name: Scoring
    description: Real-time transaction scoring
  - name: Transactions
    description: Transaction management
  - name: Users
    description: User risk profiles
  - name: Recipients
    description: Recipient/merchant intelligence
  - name: Rules
    description: Transaction rules
  - name: Analytics
    description: Transaction analytics
paths:
  /transactions/rules:
    post:
      tags:
        - Rules
      summary: Create rule
      operationId: createTransactionRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransactionRule'
      responses:
        '201':
          description: Rule created
components:
  schemas:
    TransactionRule:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        condition:
          type: string
        action:
          type: string
        score_adjustment:
          type: integer
        enabled:
          type: boolean
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````