{"uid":"cap_Lw_R71vXi8yS7Mc7D1y_S","slug":"sha-256-hash-computation-api-f85a64aa","name":"SHA-256 Hash Computation API","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/hash/sha256","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":262144}}},"responseSchema":{"type":"json","example":{"data":{"digest":"...","algorithm":"sha256"},"meta":{"engine":"hash"}}},"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_ScTeaumgdYJfXmLWSidVj","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":"Computes a SHA-256 cryptographic hash digest of an input text string and returns the hex digest along with algorithm metadata.","exampleAgentPrompt":"Can you compute the SHA-256 hash of the text 'Hello, world!' for me?","exampleUseCases":[{"title":"Deduplication fingerprint for log entries","prompt":"Hash this log line so I can deduplicate it in my pipeline: 'ERROR 2024-01-15T12:34:56Z service=auth msg=token_expired user=42'"},{"title":"Content integrity check before storing","prompt":"Give me the SHA-256 checksum of this config value so I can verify it hasn't changed later: 'db_host=prod.db.internal port=5432 pool=10'"},{"title":"Deterministic ID generation from text","prompt":"I need a deterministic unique ID for the string 'user:alice@example.com:session:2024' — can you SHA-256 hash it?"}],"resultDescription":"Returns a JSON object with a `data` field containing the `digest` (hex-encoded SHA-256 hash string) and `algorithm` (always 'sha256'), plus a `meta` field with `engine` set to 'hash'.","failureModes":["Input text exceeds 262,144 character limit — request rejected","Missing or malformed request body — likely 400 error","Payment not provided or insufficient — 402 Payment Required response via x402 protocol","Service unavailable on Cloudflare Workers edge — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call SHA-256 hash of a text string without setting up any local crypto library, or when operating inside an agent/workflow that already uses the x402 micropayment protocol for tool calls. It is ideal for coding agents that need deterministic checksums as part of a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:42:55.579Z","isFirstParty":false}