# UOS Genesis repair_validate_attest

> UOS Genesis repair_validate_attest is a paid API for AI agents from genesis.palsus2023.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Repairs malformed or machine-generated JSON, then canonicalizes, validates, fingerprints, and produces a cryptographic attestation receipt for it.

## Facts

- Endpoint: POST https://genesis.palsus2023.workers.dev/v1/repair_validate_attest
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uos-genesis-repair-validate-attest-6b1003e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l0JawGb0DONvcPRPUhqfu

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 uos-genesis-repair-validate-attest-6b1003e3 -d '<json body>'
```

Example prompt: This JSON came out of my LLM pipeline and is probably malformed — can you repair it, canonicalize it, and give me a cryptographic attestation receipt confirming it's valid? Here it is: {"name":"Alice","age":30,}

## When to prefer this

Choose this endpoint when you need not just JSON repair but a combined pipeline step that also canonicalizes, fingerprints, and cryptographically attests the result — useful for audit trails, pipeline trust, or downstream systems that require verifiable proof of validation. If you only need simple JSON repair without attestation, prefer the sibling repair_json endpoint. If you only need a standalone attestation receipt, use attestation_receipt instead.

## Known failure modes

- Input is so severely malformed that repair is impossible — returns error indicating unrecoverable JSON
- Empty or missing 'input' field — returns validation error
- Input is not a string — schema validation failure
- Network timeout on Cloudflare Worker edge node
- Payment not accepted or insufficient USDC balance via x402 protocol

## How this service works

UOS Genesis machine utility: repair_validate_attest

## Output

Returns a repaired and canonicalized version of the input JSON, a cryptographic fingerprint (likely SHA-256), and an attestation receipt confirming the document was validated. The receipt can be used as a trust signal or audit artifact in downstream automated workflows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "description": "Malformed JSON produced by an LLM, API, autonomous agent, or automation workflow. Genesis repairs it, canonicalizes it, validates it, generates a SHA-256 fingerprint, and returns a signed machine-verifiable integrity attestation."
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uos-genesis-repair-validate-attest-6b1003e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from genesis.palsus2023.workers.dev](https://www.zero.xyz/host/genesis.palsus2023.workers.dev/llms.txt)
