{"uid":"cap_TnmvASskOhFAxuEtSKagg","slug":"util-beauty-jwt-crypto-utility-3a035f25","name":"util.beauty JWT 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/jwt","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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wKb1CLknxk2VI-4hVA776","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Signs, verifies, or decodes JSON Web Tokens (JWTs) as a metered pay-per-request utility","exampleAgentPrompt":"Sign this JSON payload as a JWT using HS256 with the secret 'mysupersecret': {\"userId\": \"abc123\", \"role\": \"admin\", \"exp\": 1893456000}","exampleUseCases":[{"title":"Sign auth token for API testing","prompt":"Create a signed JWT with HS256 using secret 'testsecret123' and payload {\"sub\": \"user_42\", \"role\": \"editor\", \"iat\": 1700000000, \"exp\": 1700086400} — I need a bearer token to test my API endpoints."},{"title":"Verify incoming JWT token validity","prompt":"Verify this JWT token and tell me if it's valid and what claims it contains: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQyIn0.abc123, signed with secret 'myappsecret'."},{"title":"Decode JWT claims for debugging","prompt":"Decode this JWT token for me without verifying the signature — I just want to see what claims are inside: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI5OTkiLCJyb2xlIjoiYWRtaW4ifQ.xyz"}],"resultDescription":"Returns a JSON object with ok (boolean), the utility name, a unique requestId, and chargedCredits consumed. The main result contains the signed JWT string, decoded claims object, or verification boolean depending on the operation requested.","failureModes":["Invalid or malformed JWT input returns error with ok: false","Wrong or missing signing secret causes verification failure","Unsupported algorithm specified returns 400-level error","Expired token detected during verification returns invalid result","Payment failure via x402 (insufficient USDC balance) blocks the request","Malformed JSON payload in body results in schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use JWT operation without standing up your own crypto library or service. Ideal for AI agents, serverless functions, or lightweight scripts that need occasional JWT signing/verification without managing dependencies. Particularly suited for x402-enabled agentic workflows that already use USDC micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T12:38:53.559Z","isFirstParty":false}