{"uid":"cap_xi7P934aFqe4iQo6nJY9q","slug":"x402-utility-tools-jwt-decode-46e43c87","name":"x402 Utility Tools – JWT Decode","description":"A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.","url":"https://x402-utils.558686.xyz/v1/tools/jwt-decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"jwt-decode","input":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudCJ9.signature"},"route":"/v1/tools/jwt-decode","result":{"claims":[],"header":"header_example","payload":{},"validShape":true,"signatureVerified":true},"project":"x402-utility-tools","deterministic":true}},"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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J6Och5bLN7mT26PP9flie","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","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 returns its header, payload claims, shape validity, and signature verification status without requiring an LLM.","exampleAgentPrompt":"Can you decode this JWT for me and tell me what claims are in the payload — eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudCIsImV4cCI6MTcxMjAwMDAwMH0.signature — and whether the shape looks valid?","exampleUseCases":[{"title":"Debug an expired auth token","prompt":"I got a 401 on my API call. Can you decode this JWT token for me so I can see if it's expired or who the subject is? Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNjAwMDAwMDAwfQ.signature"},{"title":"Inspect agent identity claims","prompt":"I need to know what's inside this bearer token before I pass it to the next service — can you decode it and show me the header algorithm and all payload claims? Here's the token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJteS1hcHAiLCJyb2xlIjoiYWRtaW4ifQ.sig"},{"title":"Validate JWT structure in a pipeline","prompt":"In my automation pipeline I'm receiving JWTs from an external service and need to make sure they're well-formed before processing them further — can you check if this token has a valid shape? Token: eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoidGVzdCJ9.abc123"}],"resultDescription":"Returns a JSON object with the decoded JWT header (algorithm, type), the full payload as a parsed object, an array of claims, a boolean validShape indicating whether the token structure is well-formed, and a signatureVerified boolean.","failureModes":["Malformed or non-JWT string input may return validShape: false or an error response","Signature verification may fail if the signing key is not available to the service","Missing or empty token field returns a validation error","Network or payment processing failures return a 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, deterministic, non-LLM JWT decode operation inside an automated pipeline — especially when you want structured output (header, payload, claims, validity) without spinning up heavier parsing logic or using an AI model for a task that is purely mechanical. At $0.002 per call it is cost-effective for high-frequency token inspection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:08:47.029Z","isFirstParty":false,"canonicalSlug":"x402-utility-tools-jwt-decode-46e43c87"}