# enclave402 Census Verdict

> enclave402 Census Verdict is a paid API for AI agents from enclave402.com, paid per call via x402, $0.002/call, status down (last checked 2026-10-12).

Returns a pre-spend trust verdict (pay/caution/avoid) with EIP-712 attestation for one or more x402 seller resources, based on periodic liveness and compliance probing.

## Facts

- Endpoint: GET https://enclave402.com/api/census/verdict?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/enclave402-census-verdict-50830a30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g7b02vieKumZuhdS55Z5S

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 enclave402-census-verdict-50830a30
```

Example prompt: Before you pay that seller, check the enclave402 census verdict for https://some-seller.com/api/data — I need to know if it's rated pay, caution, or avoid and see the signed attestation.

## When to prefer this

Use this endpoint when you need a fast, cached, EIP-712-attested trust verdict for an x402 seller before dispatching payment — it is cheaper and faster than on-demand probing (/api/seller/vet) because it reads from the periodic census sweep. Prefer it for routing decisions in automated agent pipelines where you need a signed, verifiable verdict rather than a live probe. Use /api/seller/vet instead when you need a fresh real-time probe of a seller not yet in the census or when the census entry is stale.

## Known failure modes

- Resource URL not found in census — returns empty items array
- Invalid EVM address format for payTo — validation error
- Rate limiting if called too frequently for on-demand probing (use /api/seller/vet instead)
- Stale verdict if resource has not been re-probed recently (stale:true in response)
- Payment failure — $0.002 USDC not settled, no charge applied, no receipt issued
- Invalid verdict enum value in filter parameter — schema validation error

## How this service works

Pre-spend check from the seller census: each Bazaar-indexed resource is re-probed periodically (liveness, 402-envelope compliance, declared output schema, latency, usage) and mapped to pay | caution | avoid with an EIP-712 signature a router checks offline. Query one resource, a payTo, or page the feed by verdict. MUST be invoked before dispatching to an unknown seller. Do NOT use to probe on demand (see /api/seller/vet). Settles $0.002 USDC; no charge on failure.

## Output

Returns a JSON object with mode (resource/payTo/feed), an items array where each entry includes the resource URL, verdict (pay/caution/avoid), integer score, checkedAt timestamp, latencyMs, schemaDeclared flag, stale flag, payTo address, and an EIP-712 attestation object. Also includes total count, census sweep metadata, settled boolean, and a Unix timestamp.

## 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": {
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "description": "Bulk feed page size."
      },
      "payTo": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "EVM payee address; returns every assessed resource paid to it."
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "minimum": 0,
       "description": "Bulk feed page offset."
      },
      "verdict": {
       "enum": [
        "pay",
        "caution",
        "avoid"
       ],
       "type": "string",
       "description": "Bulk feed filter (used when neither resource nor payTo is given)."
      },
      "resource": {
       "type": "string",
       "pattern": "^https://",
       "maxLength": 2048,
       "description": "Absolute https URL of one x402 resource."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "mode",
      "items",
      "total",
      "census",
      "settled",
      "ts"
     ],
     "properties": {
      "ts": {
       "type": "integer"
      },
      "mode": {
       "enum": [
        "resource",
        "payTo",
        "feed"
       ],
       "type": "string"
      },
      "items": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "resource",
         "verdict",
         "score",
         "checkedAt"
        ],
        "properties": {
         "payTo": {
          "type": [
           "string",
           "null"
          ]
         },
         "score": {
          "type": "integer"
         },
         "stale": {
          "type": "boolean"
         },
         "verdict": {
          "enum": [
           "pay",
           "caution",
           "avoid"
          ],
          "type": "string"
         },
         "resource": {
          "type": "st
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/enclave402-census-verdict-50830a30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from enclave402.com](https://www.zero.xyz/host/enclave402.com/llms.txt)
