{"uid":"cap_eOvD5sBzISiR8ZDYWMBO3","slug":"sha-256-digest-as-base64url-from-hex-bytes-f258ba33","name":"SHA-256 Digest as Base64URL from Hex Bytes","description":"Call when an agent needs a sha256 digest of hex bytes, encoded as base64url. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/digest-sha256-base64url-rawhex first.","url":"https://agentshelf.syntexa.ch/v1/digest-sha256-base64url-rawhex?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"minLength":1,"description":"HMAC secret. Required on HMAC SKUs. Omit it for plain digests and checksums. The key is not stored."},"text":{"type":"string","examples":["68656c6c6f"],"maxLength":100000,"minLength":1,"description":"Message to digest. For raw-hex SKUs this is hex bytes; for utf16 or latin1 SKUs it is decoded with that encoding. Otherwise it is UTF-8 text."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YKKsK0BzuN3hQC96hAVcc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 hash of raw bytes provided as a hex string and returns the digest encoded as base64url","exampleAgentPrompt":"Can you compute the SHA-256 hash of these hex bytes — 48656c6c6f — and give me the result encoded as base64url?","exampleUseCases":[{"title":"Integrity fingerprint for binary payload","prompt":"I have a binary blob represented as hex — deadbeefcafe0102 — and I need its SHA-256 digest in base64url format to store as an integrity fingerprint alongside the file."},{"title":"Signing pre-image hash for JWT","prompt":"Before I sign a JWT, I need the SHA-256 hash of this hex-encoded byte sequence 4a57543230 returned as base64url so I can use it as the pre-image digest in the header."},{"title":"Checksum validation of hex data","prompt":"Can you hash this hex string 0f1e2d3c4b5a6978 using SHA-256 and return it as base64url so I can compare it to the expected checksum in our audit log?"}],"resultDescription":"Returns a SHA-256 digest of the input raw bytes (provided as a hex string), encoded using the base64url alphabet (URL-safe base64 without padding issues). The response contains the digest string ready for use in cryptographic contexts such as signing, integrity verification, or fingerprinting.","failureModes":["Invalid hex string (odd length or non-hex characters) — returns an error indicating malformed input","Input text or key exceeds maximum length of 512 or 100,000 characters respectively — rejected with validation error","Payment of $0.003 USDC not provided or payment fails — 402 Payment Required response","Empty input string — rejected due to minLength:1 constraint"],"whenToPreferThis":"Use this endpoint when you need a SHA-256 hash specifically of raw bytes supplied as a hex-encoded string and want the result in base64url encoding — a combination particularly common in JWT, JOSE, and modern cryptographic protocols. Prefer the free sandbox POST /v1/sandbox/digest-sha256-base64url-rawhex when available to avoid the $0.003 USDC cost. Choose this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:08.233Z","isFirstParty":false,"canonicalSlug":"sha-256-digest-as-base64url-from-hex-bytes-f258ba33"}