# x402 Trust Layer ZK Prove

> x402 Trust Layer ZK Prove is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-12).

Generates a zero-knowledge proof for a given HTTP payload, returning an allowed/denied decision with a summary via x402 payment settlement.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/protocol/zk/prove?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-zk-prove-0b3ac442
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_St7w-MH8D2GhbE3FyaAum

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 x402-trust-layer-zk-prove-0b3ac442 -d '<json body>'
```

Example prompt: Run a zero-knowledge proof on this JSON POST body to verify it's allowed under our trust mandate — use the x402 Trust Layer ZK prove endpoint and tell me if the action is permitted and why.

## When to prefer this

Choose this endpoint when you need cryptographic zero-knowledge proof generation and validation for HTTP request payloads within the x402 trust ecosystem, particularly for mandate compliance, agent authorization, or privacy-preserving attestation without exposing underlying data.

## Known failure modes

- Missing required 'input' object returns 400 validation error
- Invalid method enum (not POST/PUT/PATCH) returns schema validation failure
- Non-JSON/form-data/text bodyType causes rejection
- Insufficient x402 payment ($0.15 USDC) results in 402 Payment Required
- Malformed body properties cause processing failure
- ZK proof computation failure returns ok:false with error summary

## How this service works

68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.

## Output

Returns a JSON object with 'ok' (boolean success), 'allowed' (boolean access decision), and 'summary' (string explanation of the proof result) after x402 USDC payment settlement.

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "allowed",
      "summary"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "allowed": {
       "type": "boolean"
      },
      "summary": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowed": true,
  "summary": "Paid response after x402 settlement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-layer-zk-prove-0b3ac442/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402trustlayer.xyz](https://www.zero.xyz/host/x402trustlayer.xyz/llms.txt)
