{"uid":"cap_82jnxl0JYdh1YgupflbCV","slug":"x402-hash-api-sha-256-89272dd1","name":"x402 Hash API – SHA-256","description":"Pay-per-call hashing and encoding for AI agents (USDC on Base)","url":"https://x402-hash-api.vercel.app/api/v1/sha256?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"payload to hash"},"encoding":{"type":"string","description":"utf8 | hex | base64"}}},"responseSchema":{"type":"json","example":{"digest":"...","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_yuMgksflkw_3ParbWBzuD","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 cryptographic hash of a provided string payload, returning the hex digest, with payment via USDC on Base per call","exampleAgentPrompt":"Hash the string 'hello world' using SHA-256 with UTF-8 encoding and give me the digest.","exampleUseCases":[{"title":"Content integrity fingerprinting","prompt":"Take this document text and compute its SHA-256 hash in UTF-8 so I can use it as a tamper-proof fingerprint."},{"title":"Hashing hex-encoded binary data","prompt":"I have some hex-encoded binary data — can you SHA-256 hash it using hex encoding and return the digest?"},{"title":"Deduplication key generation","prompt":"Hash this user-submitted string 'john.doe@example.com' with SHA-256 (UTF-8) so I can use the digest as a deduplication key in my database."}],"resultDescription":"A JSON object containing the 'digest' field (the SHA-256 hash as a hex string) and the 'algorithm' field confirming 'sha256'. The response is deterministic for the same input and encoding.","failureModes":["Missing 'data' field in request body returns a 400 error","Invalid encoding value (not utf8, hex, or base64) may return a 400 or behave unexpectedly","Payment failure or insufficient USDC balance returns a 402 Payment Required response","Malformed base64 or hex input may produce an error or incorrect hash","Service unavailability on Vercel infrastructure returns a 503 or timeout"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a pay-per-call SHA-256 hashing capability without setting up server-side infrastructure, especially in x402-compatible micropayment workflows on Base. Prefer it over local hashing libraries when operating in sandboxed agent environments lacking native crypto access, or when auditability of an external hash computation is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:44:00.383Z","isFirstParty":false,"canonicalSlug":"x402-hash-api-sha-256-7f066d6b"}