# Delx HTTP Retry Plan

> Delx HTTP Retry Plan is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Evaluates an HTTP status code and request method to return a machine-readable, idempotency-aware retry policy indicating whether a failed request is safe to retry.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/http-retry-plan
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-http-retry-plan-2a267197
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lPIjLckHgON973ZCujiN4

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 delx-http-retry-plan-2a267197 -d '<json body>'
```

Example prompt: My workflow just got a 503 back from a POST request — can you check whether it's safe to retry that, keeping in mind POST isn't inherently idempotent?

## When to prefer this

Choose this endpoint when an autonomous agent or workflow needs a deterministic, policy-driven answer about whether to retry a failed HTTP request — especially in non-idempotent or ambiguous method scenarios (POST, PATCH, DELETE). Prefer it over ad-hoc retry logic when idempotency correctness matters, or when you need a machine-readable policy rather than a hard-coded rule. Its stateless, local-only execution means results are fast, consistent, and side-effect-free.

## Known failure modes

- Invalid status_code outside 100–599 range returns a validation error (not billed)
- Missing or malformed method field may fall back to GET default
- Malformed request body returns a structured validation failure without charge
- Network or gateway errors from the API itself (unrelated to the evaluated request)

## How this service works

Decide whether an HTTP failure is safe to retry and return an idempotency-aware policy. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.

## Output

A machine-readable JSON object describing whether the given HTTP method and status code combination is safe to retry, the inferred or overridden idempotency status, and a bounded retry policy recommendation. No upstream calls are made; the result is deterministic and stateless. Structured validation failures are not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string",
   "default": "GET"
  },
  "idempotent": {
   "type": "boolean",
   "description": "Override inferred method idempotency when the caller has a stable key."
  },
  "status_code": {
   "type": "integer",
   "maximum": 599,
   "minimum": 100
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "method": "GET",
  "schema": "delx/http-retry-plan/v1",
  "warning": null,
  "strategy": "exponential_full_jitter",
  "retryable": true,
  "idempotent": true,
  "status_code": 503,
  "max_attempts": 4,
  "respect_retry_after": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-http-retry-plan-2a267197/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
