Delx Commerce Circuit Breaker State is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).
Computes the current state (open/half-open/closed) of a circuit breaker given failure counts and timing parameters, returning whether requests should be allowed through.
Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.
Returns a JSON object with the computed circuit breaker state string ('open', 'half-open', or 'closed'), a boolean allow_request indicating whether the caller should proceed, and an echo of the input parameters (open_after, cooldown_ms, open_for_ms, consecutive_failures) along with the schema identifier 'delx/util-circuit-breaker-state/v1'.
POSThttps://commerce.delx.ai/api/v1/x402/circuit-breaker-state?utm_source=zero.xyzChoose this endpoint when an AI agent or automated workflow needs a stateless, pay-per-call circuit breaker state evaluation without running its own state machine. It is ideal for agents that track failure counters externally and need a canonical computation of open/half-open/closed state — especially in multi-agent or serverless environments where maintaining in-process circuit breaker libraries is impractical. Prefer it over self-implemented logic when you want a verifiable, schema-versioned result billed per computation via USDC on Base or Solana.
| Field | Type | Description |
|---|---|---|
| open_after | number | Failures required before the breaker opens. |
| cooldown_ms | number | Milliseconds the breaker stays open before half-open. |
| open_for_ms | number | How long the breaker has already been open. |
| consecutive_failures | number | Current consecutive failure count for the dependency. |
{
"type": "json",
"example": {
"state": "open",
"schema": "delx/util-circuit-breaker-state/v1",
"open_after": 5,
"cooldown_ms": 1000,
"open_for_ms": 200,
"allow_request": false,
"consecutive_failures": 5
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"