{"uid":"cap_m2XPy7M-puwqQ2d9cnP3e","slug":"x402-utils-jwt-decoder-25372b10","name":"x402 Utils – JWT Decoder","description":"Decode a JSON Web Token's header and claims, and say when it was issued, when it expires, whether it has expired and in how many seconds it will. The signature is not verified.","url":"https://utils.kagurazaka.dev/v1/jwt?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string","description":"the JWT"}}},"responseSchema":{"type":"json","example":{"expired":false,"payload":{"exp":1792886400,"sub":"123"},"algorithm":"HS256","expires_at":"2026-10-25T00:00:00.000Z"}},"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_-Kl7Kg1uU0BnBmuGbO_8M","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":"Decodes a JWT's header and claims, returning the algorithm, payload, expiry timestamp, and whether the token has already expired — without verifying the signature.","exampleAgentPrompt":"Can you decode this JWT for me and tell me what claims it has, what algorithm it uses, and whether it's already expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNzkyODg2NDAwfQ.signature","exampleUseCases":[{"title":"Debug expired auth token","prompt":"I'm getting a 401 on my API calls — can you decode this JWT and tell me if it's expired and when it was issued? eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImV4cCI6MTY5MDAwMDAwMH0.sig"},{"title":"Inspect token claims for troubleshooting","prompt":"Can you decode this JWT and show me all the payload claims, the algorithm used, and exactly when it expires? eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYWJjMTIzIiwicm9sZSI6ImFkbWluIiwiZXhwIjoxNzkyODg2NDAwfQ.sig"},{"title":"Check token lifetime in automation pipeline","prompt":"Here's a JWT from our system — how many seconds until it expires, and has it already expired? eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdmNfYWNjb3VudCIsImV4cCI6MTc5MzAwMDAwMH0.sig"}],"resultDescription":"A JSON object containing the JWT's algorithm (e.g. HS256), the full decoded payload as a key-value map of claims, the expiration timestamp as a UTC ISO 8601 string, a boolean indicating whether the token is expired, and the number of seconds until expiry (negative if already expired).","failureModes":["Malformed or non-JWT string returns a parse error","Token with no 'exp' claim may omit expiration fields","Signature is never verified — a tampered token will still decode successfully","Missing 'token' field in the request body returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need to quickly inspect a JWT's contents, check its expiration, or extract claims without setting up a local JWT library. Ideal for debugging, automation pipelines, or when the signing secret is unavailable. Note: this does NOT verify the signature, so do not use it as a security gate — only for informational inspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:21.933Z","isFirstParty":false,"canonicalSlug":"x402-utils-jwt-decoder-25372b10"}