Invoke Skill Anomalies Investigate
post
/api/v1/skills/anomalies.investigate/invokeForensic investigation β Benford's Law, ACFE classification, chain-of-custody output.
Runs a forensic review of a client's ledger for signs of error or fraud, using Benford's Law, round-number and duplicate-payment tests and a supplier ABN check. Supply the client_id, and optionally a scope, a jurisdiction and an alert level. It returns a risk rating, classified red flags, the Benford's Law result, an evidence checklist and a written forensic narrative.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
client_idrequired | string (uuid) | UUID of the client whose ledger is investigated. |
investigation_scope | object | Optional limits on what is examined, as a JSON object such as a period or a ledger; an empty object examines everything available for the client.show nestedEmpty object. |
benford_test | boolean | When true, compare first-digit frequencies with Benford's Law. |
round_number_test | boolean | When true, flag an unusual share of round-number transactions. |
duplicate_test | boolean | When true, look for duplicate or near-duplicate payments and invoices. |
vendor_abr_check | boolean | When true, check supplier Australian Business Numbers against the register. |
threshold_override | object | Optional overrides for the default detection thresholds, as a JSON object keyed by test name; an empty object keeps the defaults.show nestedEmpty object. |
jurisdiction | "AU" | "GB" | "CA" | "US" | "NZ" | null | ISO 3166-1 alpha-2 code of the jurisdiction whose rules apply, if known. |
alert_level | "conservative" | "standard" | "aggressive" | How readily the investigation raises a red flag: conservative, standard or aggressive.conservativestandardaggressive |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||||||||||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/anomalies.investigate/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"client_id": "00000000-0000-0000-0000-000000000000",
"investigation_scope": {},
"benford_test": false,
"round_number_test": false,
"duplicate_test": false,
"vendor_abr_check": false,
"threshold_override": {},
"jurisdiction": null,
"alert_level": "conservative"
}'