{"uid":"cap_wGxPyo5HobUwuXQnzs4a8","slug":"util-beauty-hmac-crypto-utility-dc1cbc30","name":"util.beauty HMAC Crypto Utility","description":"Metered web utilities for developers and AI agents: browser screenshot and PDF, crypto, DNS and net tools. Pay per request with x402 (USDC on Base) or prepaid API keys.","url":"https://util.beauty/v1/crypto/hmac","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","properties":{"body":{"type":"object","description":"JSON request body (see OpenAPI for the utility schema).","additionalProperties":true}}},"output":{"type":"object","properties":{"example":{"type":"object","properties":{"ok":{"type":"boolean"},"utility":{"type":"string"},"requestId":{"type":"string"},"chargedCredits":{"type":"number"}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"ok":true,"utility":"…","requestId":"req_…","chargedCredits":1}},"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_WRdIbQvgDZrPB9Eml97ay","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 HMAC (Hash-based Message Authentication Code) signatures for a given message and secret key via a metered pay-per-use API.","exampleAgentPrompt":"Compute an HMAC-SHA256 signature for the message 'order:12345:confirmed' using the secret key 'mySecretKey2024' so I can attach it as a webhook signature header.","exampleUseCases":[{"title":"Webhook payload signing","prompt":"Sign the payload '{\"event\":\"payment.completed\",\"amount\":50}' with HMAC-SHA256 using my secret key 'whsec_abc123' so I can include it as the X-Signature header when sending the webhook."},{"title":"API request authentication","prompt":"Generate an HMAC-SHA256 of the string 'GET/api/orders1699999999' using the secret 'api_secret_xyz' — I need the hex digest to authenticate my request to a partner API."},{"title":"Message integrity verification","prompt":"Compute the HMAC for the message 'user:42:login:2024-01-15T10:00:00Z' with secret 'session_secret_99' and algorithm SHA256 so I can compare it against the token the client sent me."}],"resultDescription":"Returns a JSON object containing a boolean 'ok' status, the utility name, a unique requestId for tracing, the HMAC computation result (the MAC digest), and the number of credits charged for the call.","failureModes":["Missing or invalid secret key returns an error response with ok:false","Unsupported hashing algorithm returns a 400-level error","Insufficient credits or payment failure returns a 402 Payment Required","Malformed request body causes a validation error","Empty or null message input may result in a processing error"],"whenToPreferThis":"Choose this endpoint when your agent needs a quick, pay-per-use HMAC computation without setting up a local crypto library or managing dependencies — ideal for serverless agents, low-volume use cases billed per request via USDC on Base (x402), or when you need a metered, auditable crypto utility call with a request ID for tracing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:41:11.277Z","isFirstParty":false}