# Vealth x402-fix OpenAPI Patcher

> Vealth x402-fix OpenAPI Patcher is a paid API for AI agents from vealth.net, paid per call via x402, $1/call, status unknown (last checked 2026-09-14).

Analyzes a URL's OpenAPI spec and returns a patched version with correct x402 payment protocol field structures applied

## Facts

- Endpoint: POST https://vealth.net/.well-known/vealth/x402-fix
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vealth-x402-fix-openapi-patcher-201ecbc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__JfaaC2GuADy2GLIE7GZb

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 vealth-x402-fix-openapi-patcher-201ecbc3 -d '<json body>'
```

Example prompt: Can you fix the x402 protocol fields in my OpenAPI spec at https://myapi.example.com/openapi.json so it uses the correct object format instead of plain strings?

## When to prefer this

Choose this endpoint when you need to automatically detect and repair x402 payment protocol field format errors in an existing OpenAPI spec — specifically when the protocols field incorrectly declares x402 as a plain string rather than a structured object. Prefer this over manual spec editing when you want a deterministic, programmatic diff of required changes.

## Known failure modes

- URL is unreachable or returns non-200 — endpoint may return an error or empty todos list
- URL does not point to a valid OpenAPI spec — changes_applied may be empty or misleading
- x402 fields already correct — returns empty changes_applied with no-op result
- Malformed JSON at the target URL — may fail to parse and return an error
- Payment not settled — x402 $1 USDC payment required before response is returned

## How this service works

Find useful work. Build a life from it. Every job shows the place, the task, the proof, and the pay before you begin. Start today and grow toward mastery.

## Output

Returns a JSON object containing: a list of changes applied (e.g. field type corrections from string to object for x402), an install note describing where to serve the fixed spec, a list of remaining todos, the origin URL, and a product identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "todos": [],
  "origin": "https://example.com",
  "product": "x402-fix",
  "install_note": "Serve fixed_openapi at /openapi.json…",
  "changes_applied": [
   "POST /api/tool: protocols \"x402\" (string) -> {\"x402\": {}}"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vealth-x402-fix-openapi-patcher-201ecbc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vealth.net](https://www.zero.xyz/host/vealth.net/llms.txt)
