# x402 Trust Layer - Mandate Compile

> x402 Trust Layer - Mandate Compile is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-11).

Compiles and validates HTTP mandate configurations (GET, HEAD, DELETE methods) through the x402 trust infrastructure, returning an authorization summary after payment settlement.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/mandate/compile?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-mandate-compile-c702c2bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o_13h9nbXcCj--yqrRDbo

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-mandate-compile-c702c2bc -d '<json body>'
```

Example prompt: Can you compile and validate an x402 trust mandate for a GET HTTP request so I can confirm it's authorized and get the compliance summary back?

## When to prefer this

Use this endpoint when you need to compile and formally validate an HTTP mandate (specifically GET, HEAD, or DELETE methods) through the x402 trust infrastructure before enforcing access control. Prefer this over generic mandate validators when you require x402-native settlement confirmation and a structured authorization summary. Best suited for agents building automated API access control pipelines that need a machine-readable allowed/denied signal plus a human-readable compliance summary.

## Known failure modes

- Missing required 'input' object returns 400 validation error
- Unsupported HTTP method (e.g. POST, PUT, PATCH) in mandate rejected by const/enum schema
- Payment not settled via x402 returns 402 Payment Required
- Invalid or missing 'type' field (must be 'http') causes schema validation failure
- Malformed queryParams object may cause processing errors
- Network or infrastructure failure returns 5xx error

## 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 indicating successful processing), allowed (boolean indicating whether the mandate is authorized), and summary (a human-readable string describing the compliance outcome after x402 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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-mandate-compile-c702c2bc/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)
