# NewBotLabor Agent Preflight

> NewBotLabor Agent Preflight is a paid API for AI agents from newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Inspects an x402-enabled endpoint URL to determine if it is payable, returning pricing, network, and compliance details before an agent commits funds.

## Facts

- Endpoint: GET https://newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/api/x402/preflight?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/newbotlabor-agent-preflight-5ab7c0e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fV7EoDIQH-xh4EoSgjBBx

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 newbotlabor-agent-preflight-5ab7c0e5
```

Example prompt: Before my agent pays for that API, preflight the x402 endpoint at https://example.com/api/data and confirm it's payable and costs under $0.05.

## When to prefer this

Use this endpoint when an AI agent needs to safely inspect an unknown or untrusted x402-gated API before committing USDC funds — especially to enforce budget caps, confirm canonical USDC on Base mainnet, and catch misconfigured payment headers before a real call is made. Prefer this over calling the target endpoint directly when cost or network compliance is uncertain.

## Known failure modes

- Target URL does not support x402 — returns isX402: false with an empty cheapestMainnetUsdc
- Target URL is unreachable or times out — may return an error or non-x402 verdict
- Price exceeds maxUsd threshold — verdict may indicate not payable within budget
- Malformed or missing url query parameter — request rejected with validation error
- x402 headers present but non-canonical USDC asset — assetIsCanonicalUSDC returns false with issues listed

## How this service works

Pay-per-call utilities for autonomous agents, paid with x402 (USDC on Base, or USDC/USDT on Celo; no account, no API key).

## Output

Returns a JSON object with: a boolean isX402 indicating x402 support, a verdict string (e.g. 'payable_ok'), the x402 protocol version, the cheapest mainnet USDC price with network ID and canonical asset flag, and an issues array listing any problems found with the endpoint's x402 configuration.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "x402 endpoint URL to inspect (GET)"
      },
      "maxUsd": {
       "type": "string",
       "description": "your max price in USD (default 0.10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "isX402": true,
  "issues": [],
  "verdict": "payable_ok",
  "x402Version": 2,
  "cheapestMainnetUsdc": {
   "network": "eip155:8453",
   "priceUsd": 0.01,
   "assetIsCanonicalUSDC": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/newbotlabor-agent-preflight-5ab7c0e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run](https://www.zero.xyz/host/newbotlabor--254ecdfcc2de11f19b541607ee4eb77e.web.val.run/llms.txt)
