# CAPI2 Momentum Foundry – API Contract Audit

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

Audits a parsed OpenAPI JSON object and returns a structured analysis of the API contract, delivered after x402 micropayment settlement.

## Facts

- Endpoint: POST https://capi2-foundry.vandurmedries.workers.dev/v1/products/api-contract-audit/run?utm_source=zero.xyz
- Price: $0.013/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/capi2-momentum-foundry-api-contract-audit-37c5114f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_95pDf8qAfSo9Y_uX9C6mn

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-api-contract-audit-37c5114f -d '<json body>'
```

Example prompt: Can you audit this OpenAPI spec I've been working on and flag any contract issues, inconsistencies, or best-practice violations? Here's the parsed JSON object.

## When to prefer this

Choose this endpoint when you need a programmatic, paid-on-demand audit of an OpenAPI contract without providing a URL — you supply the already-parsed JSON object directly. It is best suited for CI/CD pipelines, agent workflows, or developer tools that already have the spec in memory and want a verified, receipt-backed audit result with cryptographic proof of delivery via x402.

## Known failure modes

- Invalid or malformed OpenAPI JSON object causes audit failure or error result
- Payment not settled via x402 results in 402 response and no audit delivered
- OpenAPI object contains unresolvable $ref cycles or unsupported spec versions
- Network timeout or worker error returns 5xx with no delivery receipt

## How this service works

Paid agent utilities delivered after verified x402 settlement.

## Output

A JSON object containing the audit result (structured findings about the API contract), the product ID ('api-contract-audit'), a creation timestamp, and a signed delivery receipt that includes the payer address, receipt ID, delivery timestamp, input and result SHA-256 hashes, and the atomic USDC amount charged — providing a verifiable proof of delivery.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "openapi": {
   "type": "object",
   "description": "Parsed OpenAPI JSON object; no URL fetching"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/capi2-momentum-foundry-api-contract-audit-37c5114f/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)
