{"uid":"cap_JOKltjWVdcm_sS4soNWkG","slug":"delx-commerce-idempotency-key-generator-3699d915","name":"Delx Commerce Idempotency Key Generator","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/idempotency-key?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payload":{"description":"JSON value whose canonical representation identifies one logical operation."},"namespace":{"type":"string","default":"default","maxLength":200}}},"responseSchema":{"type":"json","example":{"key":"delx_ca094a4752e182cfcac50a38d65de7c7e4f271ee05c08f26853c75f0ba24b049","schema":"delx/idempotency-key/v1","algorithm":"sha256","namespace":"default","payload_sha256":"f85c6736261be7d990522f91e81634f844ad23c515f3b4029e197ab01a2d18dc"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XT9MvTeU14J-k4aVAimV4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a deterministic idempotency key from a JSON payload and namespace, enabling agents to deduplicate or track logical operations uniquely.","exampleAgentPrompt":"Generate a deterministic idempotency key for this order payload — use the namespace 'orders' and hash the JSON object {\"order_id\":\"abc123\",\"amount\":50} so I can safely retry without duplicating the operation.","exampleUseCases":[{"title":"Safe payment retry deduplication","prompt":"I need an idempotency key for a USDC payment operation described by {\"recipient\":\"0xABC\",\"amount\":\"10.00\",\"currency\":\"USDC\"} under the namespace 'payments' so I can retry the call without accidentally double-paying."},{"title":"Agent task deduplication across runs","prompt":"My agent keeps retrying the same data enrichment task — can you generate a stable idempotency key from the payload {\"task\":\"enrich\",\"record_id\":\"user_789\"} in the 'tasks' namespace so I can detect and skip duplicates?"},{"title":"Unique operation fingerprint for audit trail","prompt":"Create a canonical idempotency key from this webhook payload {\"event\":\"order.completed\",\"order_id\":\"XYZ99\"} in the 'webhooks' namespace so I can log it and avoid processing the same event twice."}],"resultDescription":"Returns a structured JSON object containing a unique deterministic idempotency key (prefixed 'delx_'), the SHA-256 hash of the canonical payload, the namespace used, the algorithm identifier ('sha256'), and the schema version ('delx/idempotency-key/v1'). The key is stable and reproducible for identical inputs.","failureModes":["Invalid or non-serializable payload may result in a 400 error","Namespace exceeding 200 characters will be rejected","Payment failure via x402 protocol (insufficient USDC balance) will block the request","Malformed JSON in request body may cause parsing errors","Network or blockchain settlement delays may cause timeouts"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, verifiable idempotency key derived from a JSON payload without building your own hashing infrastructure. It is especially useful for AI agents that need to deduplicate operations across retries, track logical tasks, or fingerprint structured data in a namespaced, auditable way. Prefer it over rolling your own SHA-256 logic when you want a standardized 'delx/idempotency-key/v1' schema with verifiable delivery semantics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:47.043Z","isFirstParty":false,"canonicalSlug":"delx-commerce-idempotency-key-generator-3699d915"}