{"uid":"cap_cO7DkNzu_Y4rTM5Wkq4dQ","slug":"foundry-jwt-decoder-864e8845","name":"Foundry JWT Decoder","description":"JWT decoder: header, payload, issued and expiry times, and whether it has expired (signature not verified). Input: a JWT.","url":"https://minty-sprout.onrender.com/v1/jwt-decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"A JSON Web Token"}}},"responseSchema":{"type":"json","example":{"note":"Decoded only; the signature is not verified.","header":{"alg":"HS256"},"expired":true,"payload":{"exp":1700000000,"sub":"123"},"times_utc":{"exp":"2023-11-14T22:13:20+00:00"},"signature_verified":false}},"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_DEGY_qPoUGZk2WOLWURiG","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 into its header, payload, issued/expiry times, and expiration status without verifying the signature.","exampleAgentPrompt":"Can you decode this JWT for me and tell me what's in the header and payload, and whether it's expired? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMiLCJleHAiOjE3MDAwMDAwMDB9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":[{"title":"Check if session token has expired","prompt":"I have a JWT from our auth service and I want to know if it's still valid or has expired — can you decode it and check the expiry? Token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImV4cCI6MTcwMDAwMDAwMH0.abc123"},{"title":"Debug JWT claims in development","prompt":"I'm debugging my app and need to see exactly what's inside this JWT — show me the header algorithm, all the payload claims, and when it expires in UTC: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZXZfdXNlciIsInJvbGUiOiJhZG1pbiIsImV4cCI6MTkwMDAwMDAwMH0.xyz789"},{"title":"Extract user identity from token","prompt":"Pull out the subject and any other identity fields from this JWT so I can see who it belongs to and when it was issued: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzk5IiwiaWF0IjoxNjAwMDAwMDAwLCJleHAiOjE2MDAwMDM2MDB9.sig"}],"resultDescription":"A JSON object containing the decoded JWT header (with algorithm and type), the full payload (all claims such as sub, iat, exp, etc.), UTC-formatted expiry and issued-at times, a boolean indicating whether the token has expired, and a note clarifying that the signature is not verified.","failureModes":["Malformed or invalid JWT string returns an error — token must be a valid dot-separated base64url string","Empty or missing input field returns a validation error","Very long tokens may be rejected if they exceed the 8000-character input limit","Tokens with non-standard encoding may fail to parse correctly"],"whenToPreferThis":"Use this endpoint when you need to quickly inspect the contents of a JWT — its claims, expiry, and header — without needing cryptographic signature verification. Ideal for debugging, logging, expiry checks, or extracting identity fields from tokens in a trusted context where signature validation is handled elsewhere.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:40.028Z","isFirstParty":false,"canonicalSlug":"foundry-jwt-decoder-864e8845"}