x402

Risk Narrative Generator (x402)

Generates a plain-language risk narrative from structured check results. Designed for non-technical users reviewing AI agent output. Supports KYB and invoice fraud contexts.

get/x402/v2/risk-narrative-generate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/risk-narrative-generate
  • Auth: none required

Query parameters

context'kyb' | 'invoice_fraud' required

Context for the risk assessment (kyb or invoice_fraud)

check_resultsobject required

Structured check results from upstream capabilities

Response

Success

summarystring
raw_checksobject
risk_levelstring
risk_scorenumber
checks_performedinteger

Example response

{
  "flags": [
    {
      "finding": "The company domain is only 15 days old",
      "severity": "high",
      "recommendation": "Verify the company through additional channels before proceeding"
    }
  ],
  "summary": "1 of 3 checks flagged an issue. The domain age is under 30 days, which warrants attention.",
  "raw_checks": {
    "company_exists": {
      "pass": true
    },
    "domain_age_days": {
      "data": {
        "age_days": 15
      },
      "pass": false
    },
    "sanctions_clear": {
      "pass": true
    }
  },
  "risk_level": "low",
  "risk_score": 25,
  "passed_checks": [
    "company exists",
    "sanctions clear"
  ],
  "checks_performed": 3,
  "data_sources_consulted": [
    "Claude Sonnet risk assessment"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.