---
title: "Isolation Forest Transaction Anomaly Detector"
method: POST
path: "/v1/tools/detect_transaction_anomalies"
tags: ["TODO_TAGS_REVIEW"]
---

# Isolation Forest Transaction Anomaly Detector

`POST /v1/tools/detect_transaction_anomalies`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/detect_transaction_anomalies`
- Auth: none declared

Native-JS Isolation Forest anomaly detection on synthetic transaction batches. 10-tree forest, 4-feature scoring (amount, hour, counterparty frequency, recency), anomaly score histogram, flagged transaction table. Zero-egress: no real transaction data transmitted. Chains from ART-05 (EU AI Act credit-scoring) and ART-10 (AMLA typology).

**Tool URL:** https://ainumbers.co/chaingraph/ml-01-isolation-forest.html
**AP2/Policy Mandate export:** yes

## Request body

- object
  - `contamination_rate` number, required
  - `n_transactions` number, required
  - `n_trees` number, required
  - `seed` number, required
  - `subsample_size` number, required
  - `threshold` number, required

## Response `200`

Successful tool execution result

- object
  - `flag_rate` number
  - `flagged_count` integer
  - `max_anomaly_score` number
  - `mean_anomaly_score` number
  - `n_transactions_scored` integer
  - `p95_anomaly_score` number
  - `threshold` number
  - `verdict` string

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
