{"uid":"cap_-Wv5DtKhJ30DN9HzIa97j","slug":"jwt-decode-api-5c01d17b","name":"JWT Decode API","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/jwt/decode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"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"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"header":{"alg":"HS256"},"payload":{"sub":"123"},"signature_verified":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eXLGwizrx-fzqThUAsyfb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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, and signature verification status","exampleAgentPrompt":"Can you decode this JWT for me and show me what's in the header and payload: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","exampleUseCases":[{"title":"Inspect bearer token claims","prompt":"I have this JWT token from my API response and I want to see the payload claims and what algorithm it's using — can you decode it for me? The token is eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiIsImVtYWlsIjoidGVzdEB0ZXN0LmNvbSJ9.signature"},{"title":"Debug authentication token","prompt":"I'm getting auth errors and I want to peek inside this JWT to check the expiry and subject — can you decode eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyXzk5IiwiZXhwIjoxNjAwMDAwMDAwfQ.abc123 and tell me what's in there?"},{"title":"Verify JWT algorithm used","prompt":"What algorithm is this JWT using and what's the payload? Token: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJteWFwcCIsInJvbGUiOiJhZG1pbiJ9.sig"}],"resultDescription":"Returns a JSON object with three fields: 'header' (containing algorithm and token type), 'payload' (containing the decoded JWT claims such as sub, iat, exp, etc.), and 'signature_verified' (boolean indicating whether the signature was cryptographically verified).","failureModes":["Malformed or non-JWT string returns an error or unparseable response","Missing required 'token' query parameter results in a validation error","Invalid base64 encoding in token segments causes a decode failure","Network or service unavailability returns a non-200 HTTP status","Payment failure (402) if USDC payment header is missing or insufficient"],"whenToPreferThis":"Use this endpoint when you need a quick, serverless way to decode and inspect a JWT token's header and payload without setting up a local JWT library. Ideal for agents and automated workflows that encounter JWTs in API responses and need to extract claims like subject, expiry, or roles on the fly. Prefer this over implementing JWT parsing locally when operating in lightweight scripting environments or when you need a deterministic, paid utility call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:22.992Z","isFirstParty":false}