{"uid":"cap_VNcr3fA751YU6lwxmpIk7","slug":"delx-commerce-retry-safe-classify-895ff3be","name":"Delx Commerce — Retry-Safe Classify","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/retry-safe-classify?utm_source=zero.xyz","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_iEkogJBF9MPWihW3qU7FL","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 an HTTP request is safe to retry based on method, status code, mutation behavior, and idempotency key presence","exampleAgentPrompt":"I just got a 503 from a POST call that mutates data and has an idempotency key — is it safe to retry, and what should I do next?","exampleUseCases":[{"title":"Agent retry decision after transient failure","prompt":"My agent just made a POST request to charge a user and got back a 503. The request body mutates state and I included an idempotency key — can I safely retry it, and what's the recommended approach?"},{"title":"Safe retry check for read-modify-write operation","prompt":"I have a PUT request that failed with a 500, and it does modify the request body. There's no idempotency key. Should I retry this or is it too risky?"},{"title":"Idempotency-aware retry classification in workflow","prompt":"In my automated pipeline a GET request returned a 429. The body doesn't mutate. Is it safe to retry this, and what retry strategy do you recommend?"}],"resultDescription":"Returns a JSON object with retry_safe (boolean), advice (e.g. 'retry_with_backoff'), reason (e.g. 'transient_status_with_idempotency_key'), the echoed method and status_code, and a schema identifier string for traceability.","failureModes":["Missing required fields (method or status_code) may result in a 400 or malformed classification","Invalid status_code values outside standard HTTP range may produce unexpected classifications","Payment failure via x402 protocol results in 402 response before any classification occurs","Network timeout on the Delx endpoint itself may require a retry of the classify call"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a principled, rule-based decision about HTTP retry safety at runtime — especially when dealing with potentially mutating requests, uncertain idempotency guarantees, or transient error codes. It is particularly useful in agentic workflows where unintended duplicate side effects (e.g. duplicate payments or writes) must be avoided. Prefer it over hardcoded retry logic when the HTTP method, status code, and idempotency posture vary dynamically across different API calls in the workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.189Z","isFirstParty":false,"canonicalSlug":"delx-commerce-retry-safe-classify-895ff3be"}