{"uid":"cap_sB1t5spnDyhZsTZhlnmeS","slug":"x-pay-sha-256-hash-api-d4560bba","name":"X Pay SHA-256 Hash API","description":"Pay-per-request utility APIs powered by x402 using USDC on Base.","url":"https://www.api-xpay.com/x402/hash","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hash":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","asset":"USDC","network":"base","success":true,"algorithm":"sha256"}},"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_GDR4y8jDcjnYQHrzVZ728","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":"Computes a SHA-256 hash of a provided HTTP request body payload, returning the hex digest, paid per-call via USDC on Base using x402.","exampleAgentPrompt":"Hash this JSON payload for me using SHA-256: {\"user\":\"alice\",\"amount\":42} — send it as a JSON body via POST so I get back the hex digest.","exampleUseCases":[{"title":"Deduplication fingerprinting for event payloads","prompt":"I need to deduplicate incoming webhook events — can you SHA-256 hash this JSON body so I can compare fingerprints and skip duplicates? Body is {\"event\":\"order.created\",\"orderId\":\"abc123\"}, sent as JSON via POST."},{"title":"Data integrity check before storage","prompt":"Before I save this form submission to the database, hash the JSON body {\"name\":\"Jane\",\"email\":\"jane@example.com\"} with SHA-256 so I can store the checksum alongside the record for later integrity verification."},{"title":"Cache key generation from request body","prompt":"Generate a SHA-256 hash of this API request body — {\"query\":\"top products\",\"limit\":10} as JSON via POST — so I can use the digest as a cache key and avoid re-running expensive lookups for identical requests."}],"resultDescription":"Returns a JSON object containing: the SHA-256 hex hash string of the input body, the algorithm name ('sha256'), the payment asset ('USDC'), the network ('base'), and a boolean success flag.","failureModes":["Missing required 'input' object returns a 400 validation error","Invalid bodyType enum value causes schema rejection","Empty or malformed body object may produce an unexpected hash or error","Payment failure (insufficient USDC balance) prevents request from being processed","Network congestion on Base may delay payment confirmation and response"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use SHA-256 hashing primitive without setting up your own crypto infrastructure, especially in blockchain-native or x402-enabled agent workflows where USDC micropayments on Base are already in use. It is ideal for lightweight, stateless hashing of JSON, form, or text payloads within automated pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:35.198Z","isFirstParty":false}