x402
utility

Derive closed, open, or half-open circuit state from failure and cooldown inputs — call when deciding closed/open/half-open from failure counters. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.

post/api/v1/x402/circuit-breaker-state

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/circuit-breaker-state
  • Auth: none declared

Request body

consecutive_failuresnumber required

Current consecutive failure count for the dependency.

open_afternumber

Failures required before the breaker opens.

cooldown_msnumber

Milliseconds the breaker stays open before half-open.

open_for_msnumber

How long the breaker has already been open.

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schemastring
statestring
consecutive_failuresinteger
open_afterinteger
cooldown_msnumber
open_for_msnumber
allow_requestboolean

Changes

No recorded changes to this operation across all 1 revision of this API.