{"uid":"cap_Td_GsDpnqile3bybtw_F_","slug":"agent-rest-stop-idempotency-key-generator-28f5db54","name":"Agent Rest Stop – Idempotency Key Generator","description":"The same key for 24 hours.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/IdempotencyKey?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"buyer_id":{"type":"string"},"resource_id":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FtG9DxHHDAmiI5xiYrxTA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates and returns a stable idempotency key for a given buyer+resource pair, valid for 24 hours.","exampleAgentPrompt":"Give me an idempotency key for buyer 'usr_abc123' and resource 'order_789' — I need it to stay consistent for the next 24 hours so I can safely retry this payment without duplicating it.","exampleUseCases":[{"title":"Safe payment retry for agent","prompt":"I'm about to charge buyer 'usr_42' for resource 'invoice_99' and I might need to retry if the network fails — can you get me an idempotency key that will stay the same for 24 hours?"},{"title":"Deduplicating concurrent agent requests","prompt":"Two of my agents might try to process resource 'job_555' for buyer 'org_7' at the same time — grab an idempotency key so only one goes through."},{"title":"Stable key for multi-step workflow","prompt":"I'm running a multi-step workflow for buyer 'user_001' accessing resource 'report_2024' and I need a single consistent key across all retries for the next day — can you fetch that from Agent Rest Stop?"}],"resultDescription":"Returns a stable idempotency key string tied to the provided buyer_id and resource_id combination, guaranteed to remain the same for 24 hours, enabling safe retries and deduplication of operations.","failureModes":["Missing buyer_id or resource_id returns a 400 Bad Request","Payment failure (insufficient USDC balance) returns 402 Payment Required","Internal server error if key store is unavailable returns 500","Key expiry after 24 hours means a new key will be issued on next call"],"whenToPreferThis":"Use this endpoint when you need a deterministic, time-bounded idempotency key for a specific buyer+resource pair — especially before executing payments, mutations, or any operation where duplicate execution would be harmful. Prefer it over generating your own UUID when you want guaranteed consistency across retries within a 24-hour window.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:27.272Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-idempotency-key-generator-28f5db54"}