Agent Preflight

Decide before you spend a tool call.

Canonical API host: https://api.agent-preflight.com

Authoritative price: $0.001 USDC per paid POST /v0.2/preflight/tool-call on Base mainnet (x402).

Endpoints

Example: unpaid probe (expects 402 in production)

curl -i -X POST https://api.agent-preflight.com/v0.2/preflight/tool-call \
  -H 'content-type: application/json' \
  -H 'accept: application/json' \
  --data '{
  "runId": "run_01",
  "stepId": "step_7",
  "tool": {
    "provider": "search",
    "operation": "web_search",
    "request": { "query": "Acme Corp Series B funding", "max_results": 5 },
    "estimatedExternalCostUsd": 0.01,
    "estimatedModelCostUsd": 0.002
  },
  "budget": {
    "remainingUsd": 0.08,
    "reservedUsd": 0.02,
    "maxToolCallsRemaining": 4
  },
  "task": { "goalHash": "goal-acme" },
  "history": []
}'

Example JSON body

{
  "runId": "run_01",
  "stepId": "step_7",
  "tool": {
    "provider": "search",
    "operation": "web_search",
    "request": { "query": "Acme Corp Series B funding", "max_results": 5 },
    "estimatedExternalCostUsd": 0.01,
    "estimatedModelCostUsd": 0.002
  },
  "budget": {
    "remainingUsd": 0.08,
    "reservedUsd": 0.02,
    "maxToolCallsRemaining": 4
  },
  "task": { "goalHash": "goal-acme" },
  "history": []
}

Decisions

Payment

Production returns HTTP 402 with x402 PAYMENT-REQUIRED until a valid Base mainnet USDC payment is presented. Settlement pays the configured public receive address. Do not send private keys to this API.