# SpendPreflight Risk Check

> SpendPreflight Risk Check is a paid API for AI agents from api.spendpreflight.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Screens a merchant, domain, or wallet address for sanctions matches and risk signals before authorizing an x402 payment

## Facts

- Endpoint: GET https://api.spendpreflight.com/v1/check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spendpreflight-risk-check-d3a980f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kx2UCTZNF2YtmusQkmvNZ

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 spendpreflight-risk-check-d3a980f1
```

Example prompt: Before you pay crypto-parts-supplier.com at wallet 0xAbC123, run a SpendPreflight sanctions and risk check on the merchant name 'Crypto Parts Supplier', their domain crypto-parts-supplier.com, and that wallet address — I need to know the risk level and any flags before we proceed.

## When to prefer this

Use SpendPreflight when an AI agent is about to execute an x402 crypto payment and needs a fast, low-cost ($0.01 USDC) pre-authorization risk check combining OFAC sanctions screening with domain intelligence. Prefer this over manual compliance checks or heavier KYC pipelines when you need a lightweight, programmatic preflight gate for autonomous payment agents. Best suited for scenarios where speed and cost-efficiency matter more than a full legal compliance certification.

## Known failure modes

- Missing required query parameters returns an error — at least one of name, domain, or address should be provided
- Invalid or malformed wallet address may return null for address_match rather than an error
- Newly registered domains may show limited registrar data
- Sanctions data is only as current as the data_as_of timestamp; stale data is not flagged by the API
- Network or service unavailability returns a non-200 status with no risk assessment

## How this service works

Operated by SpendPreflight: sanctions screening and allow/hold/block preflight for x402 payments.

## Output

Returns a risk level (low/medium/high), a list of risk flags (e.g. 'new_domain'), domain intelligence (DNS records, registration age, registrar, registration date, errors), OFAC SDN sanctions matches for the name and address, and a disclaimer noting the data is informational only and sourced from the public OFAC SDN list as of a stated date.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string",
       "description": "Merchant or payee legal name"
      },
      "domain": {
       "type": "string",
       "description": "Merchant domain or URL"
      },
      "address": {
       "type": "string",
       "description": "Payee wallet address (EVM, BTC, etc.)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risk": "medium",
  "flags": [
   "new_domain"
  ],
  "domain": {
   "hasA": true,
   "hasMx": false,
   "domain": "example-shop.com",
   "errors": [],
   "ageDays": 15,
   "registrar": "Example Registrar",
   "registered": "2026-09-20"
  },
  "sanctions": {
   "name_matches": [],
   "address_match": null
  },
  "data_as_of": "2026-10-05T00:00:00.000Z",
  "disclaimer": "Informational screening only. Not legal advice, not a compliance certification, and not a guarantee. Sanctions data is from the public OFAC SDN list as of data_as_of. Verify matches before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spendpreflight-risk-check-d3a980f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.spendpreflight.com](https://www.zero.xyz/host/api.spendpreflight.com/llms.txt)
