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

# Inject Transaction

> Injects a transaction into FinWatch for real-time risk evaluation. When you send a transaction, FinWatch evaluates it against all active rules and returns a verdict — whether to approve, review, block, or alert.



## OpenAPI

````yaml POST /inject
openapi: 3.1.0
info:
  title: FinWatch API
  description: >-
    FinWatch REST API for real-time transaction monitoring, rule evaluation, and
    instruction management.
  version: 1.0.0
  contact:
    name: FinWatch Support
    url: https://docs.finwatch.finance
servers:
  - url: http://localhost:8081
    description: Local development server
security: []
tags:
  - name: Transactions
    description: >-
      Inject transactions for evaluation, retrieve transaction details, and
      handle webhook events.
  - name: Instructions
    description: >-
      Create, list, retrieve, and delete monitoring rules written in
      Watchscript.
  - name: Git
    description: Manage rules with Git for version control — status, pull, push, and clone.
paths:
  /inject:
    post:
      tags:
        - Transactions
      summary: Inject Transaction
      description: >-
        Injects a transaction into FinWatch for real-time risk evaluation. When
        you send a transaction, FinWatch evaluates it against all active rules
        and returns a verdict — whether to approve, review, block, or alert.
      operationId: injectTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InjectTransactionRequest'
            example:
              amount: 5000
              currency: USD
              source: balance_123
              destination: balance_456
              reference: txn_ref_001
              description: High-value transfer
              meta_data:
                merchant_category: finance
                country: US
      responses:
        '200':
          description: Transaction processed successfully
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    InjectTransactionRequest:
      type: object
      required:
        - amount
        - currency
        - reference
      properties:
        transaction_id:
          type: string
          description: Unique transaction identifier. Auto-generated UUID if not provided.
        amount:
          type: number
          format: double
          description: Transaction amount
        currency:
          type: string
          description: Currency code (e.g., USD, EUR, GBP)
        source:
          type: string
          description: Source balance identifier
        destination:
          type: string
          description: Destination balance identifier
        reference:
          type: string
          description: Unique reference identifier for the transaction
        description:
          type: string
          description: Human-readable transaction description
        status:
          type: string
          description: Transaction status (e.g., pending, applied, failed)
        hash:
          type: string
          description: Transaction hash for deduplication
        allow_overdraft:
          type: boolean
          description: Whether to allow overdraft on the source balance
          default: false
        inflight:
          type: boolean
          description: Whether this is an inflight transaction
          default: false
        skip_queue:
          type: boolean
          description: Whether to skip the processing queue
          default: false
        atomic:
          type: boolean
          description: Whether the transaction should be atomic
          default: false
        created_at:
          type: string
          format: date-time
          description: >-
            Transaction creation timestamp. Defaults to current time if not
            provided.
        effective_date:
          type: string
          format: date-time
          description: Effective date of the transaction
        scheduled_for:
          type: string
          format: date-time
          description: Scheduled execution date
        inflight_expiry_date:
          type: string
          format: date-time
          description: Expiry date for inflight transactions
        meta_data:
          type: object
          additionalProperties: true
          description: Additional metadata as key-value pairs. Supports nested objects.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code

````