{"uid":"cap_b-7fBBkTOM2PDgwA2dmLj","slug":"x402-utils-jwt-decoder-4e057496","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://qcb7fnxsbd7fbhj4.68r.lambda-web.us-east-1.on.aws/v1/jwt?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string","description":"the JWT"}}},"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_3fFs0PkkfRtXqIKfNg-Pr","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 without verifying the signature, and reports issuance time, expiry time, expiry status, and seconds until expiry.","exampleAgentPrompt":"Can you decode this JWT for me and tell me whether it's expired and how long until it expires? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":[{"title":"Debug expired auth token","prompt":"I'm getting 401 errors in my app — can you decode this JWT and tell me if it's expired and exactly when it was issued and when it expired? Token: eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2VyXzQyIiwiZXhwIjoxNzAwMDAwMDAwfQ.signature"},{"title":"Inspect token claims in CI pipeline","prompt":"Parse this JWT for me and show me all the claims in the payload — I need to know the subject, issuer, audience, and any custom fields without having to set up a secret key. Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudC0wMSIsImlzcyI6Im15YXBwIiwiaWF0IjoxNzE2MjM5MDIyfQ.abc"},{"title":"Verify token freshness before use","prompt":"I have a JWT from our third-party vendor — can you tell me how many seconds it has left before expiry and whether it's already expired so I know if I need to refresh it? Token: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3OTk5OTk5OTksInN1YiI6InN2Yy1hY2NvdW50In0.sig"}],"resultDescription":"Returns the decoded JWT header (algorithm, token type), all payload claims (sub, iss, iat, exp, and any custom claims), the issued-at and expiry datetimes in human-readable form, a boolean indicating whether the token has expired, and the number of seconds until expiry (negative if already expired).","failureModes":["Malformed JWT string (not three base64url segments separated by dots) returns a parse error","Token with no expiry claim (no 'exp') may return null for expiry-related fields","Very long or binary-packed tokens may fail parsing if not valid base64url","No signature verification — this endpoint cannot confirm the token is authentic or untampered"],"whenToPreferThis":"Use this endpoint when you need to quickly inspect JWT contents and check expiry status without access to the signing secret or public key. It is ideal for debugging, logging, or informational checks where signature verification is not required. Prefer this over manual base64 decoding when you also need human-readable expiry timing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:34.440Z","isFirstParty":false,"canonicalSlug":"x402-utils-jwt-decoder-4e057496"}