{"uid":"cap_O5GC4lpFdr22ajRkUnNwF","slug":"api-strale-io-90a2297a","name":"JWT Token Decoder (No Verification)","description":"Decode a JWT token without verification. Returns header, payload, claims, expiry status, and time until expiry. Algorithmic.","url":"https://api.strale.io/x402/jwt-decode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["token"],"properties":{"token":{"type":"string"}}},"responseSchema":{"header":{"type":"object"},"payload":{"type":"object"},"algorithm":{"type":"string"},"expires_at":{"type":"string"},"is_expired":{"type":"boolean"}},"example":{"request":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0x32502b70f18cda0aa9d7a31954ccaae723b23d2506dd46526424c691ac6bea6d"},"capability":"jwt-decode","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-16T01:24:38.993Z"}},"claims":["sub","name","iat"],"header":{"alg":"HS256","typ":"JWT"},"issuer":null,"payload":{"iat":1516239022,"sub":"1234567890","name":"John Doe"},"subject":"1234567890","audience":null,"algorithm":"HS256","issued_at":"2018-01-18T01:30:22.000Z","expires_at":null,"is_expired":null,"not_before":null,"token_type":"JWT","time_until_expiry_seconds":null}},"exampleRequest":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},"tags":["x402"],"displayCostAmount":"0.0216","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Ppyqkcx-XBLzrESgslQG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","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 without signature verification, returning header, payload, claims, expiry status, and time until expiry.","exampleAgentPrompt":"Can you decode this JWT for me and tell me what claims it contains and whether it's expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":null,"resultDescription":"Returns the decoded JWT header (algorithm, token type), full payload with all claims (e.g. sub, iat, exp, custom claims), a boolean expiry status indicating whether the token has expired, and the time remaining until expiry (or time since expiry).","failureModes":["Invalid or malformed JWT string returns an error indicating the token cannot be parsed","Missing token query parameter returns a validation error","Tokens with non-standard encoding may fail to parse correctly"],"whenToPreferThis":"Use this endpoint when you need to inspect the contents of a JWT token — its claims, expiry, and header — without needing to verify the signature. Ideal for debugging, logging, or extracting user metadata from a token when you already trust the token's origin or simply need to read its data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:47.145Z","isFirstParty":false,"canonicalSlug":"api-strale-io-90a2297a"}