{"uid":"cap_OsZ0a2nVyUpDG44OJPyZ_","slug":"x402-hash-api-jwt-decode-81d4deaa","name":"x402 Hash API – JWT Decode","description":"Pay-per-call hashing and encoding for AI agents (USDC on Base)","url":"https://x402-hash-api.vercel.app/api/v1/jwt-decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string"}}},"responseSchema":{"type":"json","example":{"header":{},"payload":{},"verified":false}},"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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iAFJ_1WDuoj0-mi6lav84","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 into its header and payload components, with a verification flag, for $0.002 USDC per call via x402 micropayment","exampleAgentPrompt":"Can you decode this JWT for me so I can see the header and payload claims? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":[{"title":"Inspect expired auth token claims","prompt":"I have a JWT from our auth system and I want to see the expiry time and subject claim inside it — can you decode this token for me? eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzEyMyIsImV4cCI6MTY5MDAwMDAwMH0.signature"},{"title":"Debug agent-to-agent authentication token","prompt":"My AI agent is receiving a JWT from another service and I need to see what claims are in the payload to debug why access is being denied — please decode this token: eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYWRtaW4iLCJ1c2VyIjoiYm90In0.abc123"},{"title":"Extract user identity from OAuth token","prompt":"Can you pull apart this OAuth access token and tell me the user ID, email, and any roles listed in the payload? Token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImtleS0xIn0.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJyb2xlcyI6WyJ1c2VyIl19.sig"}],"resultDescription":"Returns a JSON object with three fields: 'header' (the decoded JWT header as an object, e.g. algorithm and token type), 'payload' (the decoded JWT claims as an object, e.g. sub, iat, exp, custom claims), and 'verified' (a boolean indicating whether the signature was verified).","failureModes":["Malformed JWT (not three base64url segments separated by dots) returns an error","Missing or empty 'token' field in request body causes a validation error","Expired or invalid signature may result in verified=false rather than an error","Network or Vercel cold-start latency on first call","Payment failure if USDC balance insufficient for $0.002 fee"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call JWT decode without setting up a local JWT library or managing dependencies. Ideal for AI agents that occasionally need to inspect token claims at runtime, debug authentication flows, or extract user identity from tokens in a serverless, stateless manner. Prefer alternatives if you need signature verification against a known secret or JWKS endpoint, or if you are decoding tokens at high volume where per-call cost accumulates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:35:40.432Z","isFirstParty":false,"canonicalSlug":"x402-hash-api-jwt-decode-81d4deaa"}