{"uid":"cap_IE-ifjRIQ69W74x7dQZwh","slug":"pastable-x402-jwt-decode-11d530c2","name":"pastable-x402 JWT Decode","description":"Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.","url":"https://pastable-x402.pages.dev/text/jwt-decode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":{"type":"json","example":{"header":{"alg":"HS256","typ":"JWT"},"expired":null,"payload":{"sub":"1"},"expires_at":null,"signature_present":true,"seconds_until_expiry":null,"signature_was_not_checked":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cpJu6W-SAX5Zn5XBDlRIJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 to extract its header, payload, signature presence, and expiry information without verifying the signature.","exampleAgentPrompt":"Can you decode this JWT token for me and tell me what's in the header and payload, and whether it's expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":[{"title":"Inspect token claims in debugging","prompt":"I have this JWT and I need to see exactly what claims and payload it contains for debugging — can you decode it for me? Token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJhYmMxMjMiLCJyb2xlIjoiYWRtaW4ifQ.signature"},{"title":"Check if auth token is expired","prompt":"Can you tell me if this bearer token has expired and how many seconds are left before it does? eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5OTkiLCJleHAiOjE3MDAwMDAwMDB9.abc123"},{"title":"Extract JWT algorithm and subject","prompt":"What signing algorithm and subject claim are in this JWT? eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImlhdCI6MTYwMDAwMDAwMH0.sig"}],"resultDescription":"Returns a JSON object containing the decoded JWT header (including algorithm and type), the payload (all claims), a boolean for signature presence, the expiration timestamp if present, seconds until expiry, and an expired flag. Note: signature is not cryptographically verified.","failureModes":["Malformed or non-JWT string returns an error","Missing required 'token' query parameter returns 400","Payment failure (x402) if USDC not provided or insufficient balance","Token with no expiry claim returns null for expires_at and seconds_until_expiry"],"whenToPreferThis":"Use this endpoint when you need to quickly inspect the contents of a JWT token — its claims, algorithm, and expiry — without needing to cryptographically verify the signature. Ideal for debugging, logging, or extracting payload data from tokens you already trust contextually. Not suitable when signature verification is required for security-critical flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:18.764Z","isFirstParty":false}