{"uid":"cap_Oh-jNfUAD2FURF_t0AbrZ","slug":"tinydata-api-hash-endpoint-d60f1954","name":"TinyData API — Hash Endpoint","description":"Hash text, encode or decode Base64, and clean CSV. Pay $0.001–$0.01 per successful request in USDC on Polygon via x402.","url":"https://cleanrows-api.lyra-lavende-7298.chatgpt.site/api/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","description":"Required only when algorithm is HMAC-SHA-256."},"text":{"type":"string","description":"Single string to hash."},"items":{"type":"array","description":"Optional ordered batch of strings. When provided as an array, takes precedence over text."},"algorithm":{"enum":["SHA-256","SHA-512","HMAC-SHA-256"],"type":"string"}}},"responseSchema":{"type":"object","required":["ok","algorithm","count"],"properties":{"ok":{"type":"boolean","const":true},"hash":{"type":"string","description":"Lowercase hexadecimal digest for a single input."},"count":{"type":"integer","maximum":500,"minimum":1},"hashes":{"type":"array","items":{"type":"string"},"description":"Ordered lowercase hexadecimal digests for a batch."},"algorithm":{"enum":["SHA-256","SHA-512","HMAC-SHA-256"],"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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__LhNLV-JoAl9-me74nyDs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes SHA-256, SHA-512, or HMAC-SHA-256 cryptographic hashes of one or more text strings in a single API call","exampleAgentPrompt":"Hash the text 'hello world' using SHA-256 and give me the hex digest.","exampleUseCases":[{"title":"Verify file content integrity","prompt":"I need to compute a SHA-256 hash of this string 'v1.4.2-release-build-2024' so I can compare it against the checksum in our release notes — can you hash it for me?"},{"title":"Batch hash user identifiers","prompt":"I have these five user IDs — 'user_001', 'user_002', 'user_003', 'user_004', 'user_005' — can you hash all of them with SHA-512 in one go and return the digests in order?"},{"title":"HMAC message authentication","prompt":"Sign the message 'order:98765:confirmed' with HMAC-SHA-256 using the secret key 'mysecretkey42' so I can attach it to an outgoing webhook for verification."}],"resultDescription":"Returns a JSON object with ok:true, the algorithm used, and either a single hex-encoded hash string (for single input) or an ordered array of hex-encoded hashes (for batch input), plus the count of items processed.","failureModes":["Missing required 'algorithm' field returns a validation error","HMAC-SHA-256 requested without providing 'key' field causes an error","Batch array exceeds 500 items may be rejected","Invalid algorithm enum value returns a schema error","Payment failure or insufficient USDC balance blocks request execution"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use cryptographic hashing service without standing up your own infrastructure — especially for SHA-256, SHA-512, or HMAC-SHA-256 on single strings or small batches up to 500 items, and when operating in a USDC micropayment (x402) environment on Polygon or Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T04:21:00.622Z","isFirstParty":false,"canonicalSlug":"tinydata-api-hash-endpoint-d60f1954"}