{"uid":"cap_6go6Z1AqTfpe4TFbooqkc","slug":"delx-retry-safe-classify-2be5ba59","name":"Delx Retry Safe Classify","description":"Classify whether a failed HTTP-style call is safe to auto-retry — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already…","url":"https://api.delx.ai/api/v1/x402/retry-safe-classify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"method":{"type":"string","description":"Input field: method."},"status_code":{"type":"integer","description":"Input field: status code."},"body_mutates":{"type":"boolean","description":"Input field: body mutates."},"idempotency_key_present":{"type":"boolean","description":"Input field: idempotency key present."}}},"responseSchema":{"type":"json","example":{"advice":"retry_with_backoff","method":"POST","reason":"transient_status_with_idempotency_key","schema":"delx/util-retry-safe-classify/v1","retry_safe":true,"status_code":503}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_if6GIywaQYZHaFnGP5y7O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies whether a failed HTTP-style call is safe to automatically retry, returning a deterministic machine-readable JSON verdict.","exampleAgentPrompt":"Can you check if it's safe to auto-retry that failed POST request — it came back with a 503 status, the body does mutate state, and there's no idempotency key attached?","exampleUseCases":[{"title":"Agent preflight before retrying failed webhook","prompt":"I have a failed POST webhook call that returned a 500 status — the body mutates data and there's no idempotency key. Should my agent automatically retry it or is that unsafe?"},{"title":"Retry safety check for idempotent PUT","prompt":"My pipeline got a 429 on a PUT request. The body doesn't mutate state and I do have an idempotency key set — can you classify whether it's safe to retry automatically?"},{"title":"Resilience policy guard for GET timeouts","prompt":"A GET request in my workflow timed out with a 504 — body doesn't mutate anything and there's no idempotency key. Is it safe to have my agent retry this automatically?"}],"resultDescription":"A deterministic JSON object indicating whether the given HTTP call is safe to auto-retry, based on the method, status code, body mutation behavior, and idempotency key presence. No state is stored; results are advisory and stateless.","failureModes":["Missing required fields (method or status_code) may return a validation error","Invalid method string or non-integer status code causes malformed input rejection","Ambiguous combinations (e.g. POST with no body_mutates flag) may return conservative non-retry verdict","Payment failure over x402 results in 402 response before classification occurs"],"whenToPreferThis":"Use this endpoint when an AI agent or orchestration layer needs a deterministic, rule-based advisory on retry safety before re-issuing a failed HTTP call — especially in automated pipelines where incorrect retries could cause duplicate mutations, financial side effects, or data corruption. Prefer this over hand-coded retry logic when you want a consistent, auditable classification step at near-zero cost ($0.001 USDC) that is stateless and has no upstream dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:45.039Z","isFirstParty":false}