{"uid":"cap_Rrxld9RzsIh8hlfqP1UVV","slug":"writerslogic-idempotency-fingerprint-ee549a42","name":"WritersLogic Idempotency Fingerprint","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/idempotency-fingerprint?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"scope":{"type":"string","maxLength":200,"description":"Mixed into the hash (for example operation name and tenant) so equal bodies in different scopes get different fingerprints."},"identity":{"type":"array","items":{"type":"string","maxLength":300},"maxItems":50,"minItems":1,"description":"JSON Pointers whose values define the operation's identity."},"requests":{"type":"array","items":{"description":"A request (body, or {method,url,body}) as JSON; several attempts of the same intended operation."},"maxItems":20,"minItems":1},"volatile":{"type":"array","items":{"type":"string","maxLength":300},"maxItems":50,"description":"JSON Pointers declared to change per attempt (timestamps, nonces, request ids)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vlXZFu8IZksMdqESuauFF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Hashes declared identity fields from request bodies using RFC 8785 canonical JSON and SHA-256 to generate a stable idempotency fingerprint, and flags issues like missing fields, volatile overlaps, timestamp-like values, and undeclared differing fields.","exampleAgentPrompt":"Before retrying this payment POST, hash the 'customerId', 'amount', and 'currency' fields as the identity — scoped to 'payment-service' — across these two request attempts, and flag anything that would make the fingerprint unstable like timestamps or UUIDs in those fields.","exampleUseCases":[{"title":"Deduplicating retried payment requests","prompt":"I'm retrying a payment API call and need a stable Idempotency-Key — hash the 'userId', 'amount', and 'merchantId' fields scoped to 'checkout-service' across my two request attempts, and warn me if any of those fields look like timestamps or if anything undeclared is different between the two tries."},{"title":"Diagnosing unstable retry fingerprints","prompt":"My retries of this order creation request keep getting different idempotency keys — can you fingerprint the 'orderId' and 'productSku' identity fields across these three request attempts, mark 'requestTimestamp' as volatile, and tell me what's causing the mismatch?"},{"title":"Pre-flight check before first write attempt","prompt":"Before I send this API request, fingerprint the 'tenantId' and 'operationName' fields scoped to 'billing-v2' and flag any problems — like if those fields are missing, look like UUIDs, or if there are other fields in the body that differ and I haven't declared them."}],"resultDescription":"Returns a SHA-256 fingerprint derived from the RFC 8785 canonical JSON of the declared identity fields, stable across key-ordering differences. Also returns a list of flags covering: missing identity fields, identity fields that are also declared volatile, identity values that heuristically resemble timestamps, epoch integers, or UUIDs, and undeclared fields that differ between the supplied request attempts.","failureModes":["Missing required 'identity' array — returns error requiring at least one JSON Pointer","A declared JSON Pointer does not resolve in one or more request bodies — flagged as missing identity field","Request body is not valid JSON — parsing error returned","More than 20 request attempts or 50 identity/volatile pointers supplied — rejected by schema limits","Identity field also listed in volatile array — flagged as a configuration conflict but may still return fingerprint"],"whenToPreferThis":"Use this endpoint when an AI agent needs to deterministically generate or validate an Idempotency-Key before retrying a write operation, especially when request bodies may have inconsistent key ordering or contain fields that could inadvertently destabilize the fingerprint (timestamps, UUIDs, nonces). Prefer this over ad-hoc hashing when you need explicit warnings about identity field quality and undeclared differing fields across retries. Not suitable when you need to actually send the request or when you need provider-specific key format enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:37.001Z","isFirstParty":false,"canonicalSlug":"writerslogic-idempotency-fingerprint-ee549a42"}