# x402 Trust Layer – Bedrock Preflight Guard

> x402 Trust Layer – Bedrock Preflight Guard is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-03).

Performs a pre-payment policy check (preflight guard) to determine whether an x402 spend is allowed before initiating a payment

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/bedrock/preflight?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-bedrock-preflight-guard-f5a3446f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C1TcjZV2tBWsLTXVhj5Yd

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-bedrock-preflight-guard-f5a3446f -d '<json body>'
```

Example prompt: Before paying for that x402 API call, run a preflight guard check using a GET HTTP method to confirm my spend policy allows it and tell me if I should proceed.

## When to prefer this

Use this endpoint as a mandatory pre-flight step before any x402 payment to ensure the intended spend is within policy limits. Prefer this over direct payment when you need to enforce spend mandates, avoid unauthorized charges, or implement agent guardrails around autonomous payments. This is the correct first step in an x402 agentic payment flow.

## Known failure modes

- Invalid or missing 'type' field (must be 'http') returns a validation error
- HTTP method not in allowed enum (GET, HEAD, DELETE) returns 400
- Policy denial returns ok:true but allowed:false with a summary explaining the restriction
- Network or service unavailability returns 5xx error
- Malformed input schema results in JSON parse 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 an 'ok' boolean, an 'allowed' boolean indicating whether the spend policy permits the call, and a human-readable 'summary' explaining the policy decision (e.g. 'Spend policy allows call — proceed to x402 payment').

## 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": [
      "messageVersion",
      "response"
     ],
     "properties": {
      "response": {
       "type": "object",
       "required": [
        "actionGroup",
        "apiPath",
        "httpMethod",
        "httpStatusCode",
        "responseBody"
       ],
       "properties": {
        "apiPath": {
         "type": "string"
        },
        "httpMethod": {
         "type": "string"
        },
        "actionGroup": {
         "type": "string"
        },
        "responseBody": {
         "type": "object",
         "required": [
          "application/json"
         ],
         "properties": {
          "application/json": {
           "type": "object",
           "required": [
            "body"
           ],
           "properties": {
            "body": {
             "type": "string"
            }
           }
          }
         }
        },
        "httpStatusCode": {
         "type": "number"
        }
       }
      },
      "messageVersion": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "response": {
   "apiPath": "/guard/pre-x402",
   "httpMethod": "POST",
   "actionGroup": "TrustLayerGuard",
   "responseBody": {
    "application/json": {
     "body": "{\"ok\":true,\"allowed\":true,\"summary\":\"Spend policy allows call — proceed to x402 payment\"}"
    }
   },
   "httpStatusCode": 200
  },
  "messageVersion": "1.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-layer-bedrock-preflight-guard-f5a3446f/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)
