Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Anomalies Investigate

post/api/v1/skills/anomalies.investigate/invoke

Forensic 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

FieldTypeDescription
client_idrequiredstring (uuid)UUID of the client whose ledger is investigated.
investigation_scopeobjectOptional 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 nested
Empty object.
benford_testbooleanWhen true, compare first-digit frequencies with Benford's Law.
round_number_testbooleanWhen true, flag an unusual share of round-number transactions.
duplicate_testbooleanWhen true, look for duplicate or near-duplicate payments and invoices.
vendor_abr_checkbooleanWhen true, check supplier Australian Business Numbers against the register.
threshold_overrideobjectOptional overrides for the default detection thresholds, as a JSON object keyed by test name; an empty object keeps the defaults.
show nested
Empty object.
jurisdiction"AU" | "GB" | "CA" | "US" | "NZ" | nullISO 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
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
artifact_idstring (uuid) | nullβ€”
download_urlstringβ€”
summarystringβ€”
citationsany[]β€”
warningsstring[]β€”
stub_fieldsstring[]β€”
investigation_idstring (uuid)β€”
risk_rating"LOW" | "MEDIUM" | "HIGH" | "CRITICAL"β€”
LOWMEDIUMHIGHCRITICAL
red_flagsany[]β€”
benford_resultanyβ€”
duplicate_analysisobjectβ€”
show nested
Empty object.
evidence_checkliststring[]β€”
referral_pathwaysstring[]β€”
limitationsstring[]β€”
forensic_narrativestringβ€”
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
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"
     }'