# CAPI2 Momentum Foundry – Change Risk Score

> CAPI2 Momentum Foundry – Change Risk Score is a paid API for AI agents from capi2-foundry.vandurmedries.workers.dev, paid per call via x402, $0.012/call, status unknown (last checked 2026-10-10).

Computes a risk score differential by comparing a 'before' JSON object to an 'after' JSON object, quantifying how much risk has changed between two states.

## Facts

- Endpoint: POST https://capi2-foundry.vandurmedries.workers.dev/v1/products/change-risk-score/run?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-momentum-foundry-change-risk-score-e07650a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RgQVu_gi7HjtYsLbns6Eh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability capi2-momentum-foundry-change-risk-score-e07650a4 -d '<json body>'
```

Example prompt: Compare these two JSON snapshots of a user profile — the 'before' version had credit_score 720 and no flags, the 'after' version has credit_score 580 and two fraud flags — and give me a change risk score so I can decide whether to block this transaction.

## When to prefer this

Choose this endpoint when you need a structured, paid, cryptographically receipted risk score comparing two discrete JSON states — particularly in compliance, fraud detection, or configuration safety workflows where auditability (via delivery receipt and SHA-256 hashes) matters. Prefer over custom diffing logic when you want a single scored output rather than a raw diff.

## Known failure modes

- Missing or malformed 'before'/'after' fields returns a 4xx validation error
- Payment settlement failure via x402 blocks execution and returns 402 Payment Required
- Network timeout on the Cloudflare Worker returns 5xx
- Empty or non-object values for before/after may produce an empty or zero result
- Invalid JSON in request body returns parse error

## How this service works

Paid agent utilities delivered after verified x402 settlement.

## Output

Returns a JSON object containing a 'result' field with the computed change risk score, a 'createdAt' ISO timestamp, the 'productId' confirming which product ran, and a 'deliveryReceipt' object that includes the payer address, a unique receiptId, delivery timestamp, SHA-256 hashes of the input and result, an atomic USDC amount charged (12000 atomic units = $0.012), and a signature hash for verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "description": "New JSON object"
  },
  "before": {
   "type": "object",
   "description": "Prior JSON object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "createdAt": "2026-09-23T00:00:00.000Z",
  "productId": "change-risk-score",
  "deliveryReceipt": {
   "payer": "0x0000000000000000000000000000000000000000",
   "productId": "change-risk-score",
   "receiptId": "00000000-0000-4000-8000-000000000000",
   "deliveredAt": "2026-09-23T00:00:00.000Z",
   "inputSha256": "example-input-sha256",
   "amountAtomic": "12000",
   "resultSha256": "example-result-sha256",
   "signatureSha256": "example-signature-sha256"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-momentum-foundry-change-risk-score-e07650a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-foundry.vandurmedries.workers.dev](https://www.zero.xyz/host/capi2-foundry.vandurmedries.workers.dev/llms.txt)
