# Coding Agent Preflight Check

> Coding Agent Preflight Check is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Validates a URL, domain, or email address as a deterministic preflight check for coding agent workflows, returning an ok/fail signal.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/agent/preflight?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coding-agent-preflight-check-6f8e5119
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SfdbvQ3b5jHHeKcfxexuo

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 coding-agent-preflight-check-6f8e5119 -d '<json body>'
```

Example prompt: Before kicking off the npm docs lookup, run a preflight check on the URL 'https://npmjs.com/package/express' to make sure it passes the deterministic coding-agent validation.

## When to prefer this

Choose this endpoint when your coding agent needs a fast, deterministic go/no-go check on a URL, domain, or email before proceeding to more expensive paid calls (such as npm docs, TypeScript signatures, or browser snapshots). It is the logical first step in x402-based coding agent pipelines where you want to avoid wasting pay-per-call credits on invalid targets.

## Known failure modes

- Invalid 'kind' enum value returns a validation error
- Malformed or unparseable 'value' string may return ok:false
- Network errors to the Cloudflare Worker may result in timeout
- Payment failure via x402 protocol blocks the call
- Missing required fields returns a schema validation error

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

Returns a JSON object with a 'data.ok' boolean indicating pass/fail and a 'meta.engine' field set to 'preflight', confirming whether the input URL, domain, or email passed deterministic validation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "enum": [
    "url",
    "domain",
    "email"
   ],
   "type": "string"
  },
  "value": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "ok": true
  },
  "meta": {
   "engine": "preflight"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coding-agent-preflight-check-6f8e5119/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
