{"uid":"cap_pV9EaPbKutbmyLUaBSX3j","slug":"coco-jwt-decode-348551a0","name":"CoCo JWT Decode","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/jwt-decode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"token":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["expired"],"properties":{"expired":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"expired":false},"exampleNote":"Illustrative response subset; not a live observation."},"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_m-e1wRPvGhGmE1gf_sp-m","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 token and checks whether it is expired","exampleAgentPrompt":"Can you check if this JWT token is expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c?","exampleUseCases":[{"title":"Check auth token before API call","prompt":"Before I make this request, can you check if my JWT is still valid or expired? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDAwMDAwMDB9.abc123"},{"title":"Debug expired session token","prompt":"A user is getting a 401 error — can you decode this JWT and tell me if it's expired so I can figure out if it's a token expiry issue? Token: eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNjAwMDAwMDAwfQ.xyz"},{"title":"Automate token refresh decision","prompt":"I need to know whether this JWT has expired so I can decide whether to refresh it automatically — can you check? Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjk5OTk5OTk5OTl9.sig"}],"resultDescription":"Returns a JSON object containing at minimum an 'expired' boolean indicating whether the provided JWT token has passed its expiration time. May also include decoded token claims or header/payload data.","failureModes":["Malformed or non-JWT string passed as token — likely returns an error or unexpected result","Missing token query parameter — request may fail validation","Token with no expiry claim (no 'exp') — expired field behavior may be undefined","Network timeout or service unavailability — no response returned"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JWT decode and expiry check without setting up a local JWT library. Ideal for AI agents or serverless pipelines that need to quickly validate token status before making authenticated API calls, especially when the x402 micropayment model fits your cost structure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:42:59.355Z","isFirstParty":false,"canonicalSlug":"coco-jwt-decode-348551a0"}