{"uid":"cap_bEDgbnU9PZBJ-XdIBR53I","slug":"proofwork-x402-text-hashing-api-d738a9e4","name":"Proofwork x402 Text Hashing API","description":"Small non-cyber evidence and data APIs payable per request with x402 on Base.","url":"https://proofwork-the402-webhook.phase-voice.workers.dev/v1/hash","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text","algorithm"],"properties":{"text":{"type":"string","maxLength":12000,"minLength":0},"algorithm":{"enum":["sha256","sha512"],"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hex":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","base64":"LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=","report":"hash","algorithm":"sha256","input_bytes":5,"content_type":"application/json"}},"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_UM_hJxWY54fmKsuqE_Eeu","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 cryptographic hash (SHA-256 or SHA-512) of a given text string, payable per request via x402 on Base.","exampleAgentPrompt":"Hash this text using SHA-256 and give me the hex and base64 digest: 'The quick brown fox jumps over the lazy dog'.","exampleUseCases":[{"title":"Tamper-evident document fingerprinting","prompt":"Hash this contract text with SHA-256 so I have a cryptographic fingerprint I can use to prove it hasn't been altered later: 'This agreement is entered into on January 1, 2025 between Party A and Party B...'"},{"title":"Evidence record for blockchain proof","prompt":"Compute a SHA-512 hash of this message so I can anchor it on-chain as proof of existence: 'Product batch #4421 passed QC inspection at 14:32 UTC on 2025-06-01.'"},{"title":"Verifying data integrity after transmission","prompt":"I sent some text over the wire and I want to confirm it arrived intact — hash this string with SHA-256 and give me the hex output so I can compare it against the sender's hash: 'user_id=8821&amount=150&currency=USD&timestamp=1717200000'"}],"resultDescription":"A JSON object containing the hex-encoded hash, base64-encoded hash, the algorithm used (sha256 or sha512), the number of input bytes processed, and the content type of the response.","failureModes":["Missing required 'text' or 'algorithm' query parameter returns a validation error","Algorithm value other than 'sha256' or 'sha512' is rejected as invalid enum","Text exceeding 12,000 characters is rejected due to maxLength constraint","Payment not fulfilled via x402 results in a 402 Payment Required response","Network or worker timeout for very large text near the character limit"],"whenToPreferThis":"Use this endpoint when you need a pay-per-use, blockchain-payment-compatible cryptographic hashing service with no subscription required. It is ideal for agents that need to hash text on demand without managing API keys, and it returns both hex and base64 encodings simultaneously. Choose SHA-256 for standard compatibility or SHA-512 for stronger collision resistance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:36:47.343Z","isFirstParty":false}