{"uid":"cap_azF46cKKrRK6mqzUIl9j6","slug":"agent-payload-tools-sha-hash-a51d226b","name":"Agent Payload Tools – SHA Hash","description":"Hash text, strings, or UTF-8 payload data with SHA256, SHA384, or SHA512. Compute a cryptographic hash, checksum, or digest for payload integrity, content fingerprinting, cache keys, and verifying that data has not changed.","url":"https://api.agent-payload-tools.workers.dev/hash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","default":"","description":"UTF-8 text to hash."},"algorithm":{"enum":["SHA-256","SHA-384","SHA-512"],"type":"string","description":"Digest algorithm. Defaults to SHA-256."}}},"responseSchema":null,"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_yxkTTvinSVx7uc9CTb1xY","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 SHA hash (SHA-256, SHA-384, or SHA-512) of UTF-8 text input deterministically","exampleAgentPrompt":"Hash the text 'Hello, world!' using SHA-256 and give me the hex digest.","exampleUseCases":[{"title":"Integrity fingerprint for AI-generated content","prompt":"Take this JSON payload I'm about to send to a third-party API and compute a SHA-256 hash of it so I can include the digest in the request header for integrity verification."},{"title":"Deterministic ID from user input","prompt":"I need a stable, reproducible identifier for the string 'user:alice@example.com' — can you hash it with SHA-256 so I get a consistent 64-character hex ID every time?"},{"title":"Security audit log checksum","prompt":"Compute a SHA-512 digest of this log entry text so I can store the checksum alongside the record and detect tampering later: 'Login attempt from 192.168.1.1 at 2024-06-01T12:00:00Z'."}],"resultDescription":"Returns a hex-encoded cryptographic digest of the input text using the specified SHA algorithm (SHA-256 by default), along with the algorithm name used. The output is deterministic — identical inputs always produce identical hashes.","failureModes":["Empty input string may return hash of empty string or a validation error","Unsupported algorithm value (outside SHA-256/SHA-384/SHA-512 enum) returns a 400 validation error","Non-UTF-8 encoded input may cause a decoding error","Payment not provided or insufficient USDC results in HTTP 402 payment required","Request timeout if the Workers.dev edge node is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic, server-side cryptographic hash of a UTF-8 string without managing local crypto libraries — especially useful in agent pipelines where you want reproducible content fingerprints, integrity checksums, or stable derived identifiers. Prefer it over client-side hashing when you want a neutral third-party computation, or when your agent runtime doesn't expose native crypto APIs. It is not suitable for hashing binary data (only UTF-8 text) or for HMAC/keyed-hash operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:26.448Z","isFirstParty":false}