{"uid":"cap_OHPh8sQpPJdrNre4HjMyl","slug":"one-engine-jwt-decode-9c2d5bb5","name":"ONE Engine JWT Decode","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/jwt/decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string"}}},"responseSchema":{"type":"json","example":{"header":{"alg":"none"},"payload":{"sub":"agent"},"verified":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0012","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.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kG62p4s6NtmKYWExOjuqb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0012","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 string and returns its parsed header, payload, and verification status","exampleAgentPrompt":"Can you decode this JWT for me and show me what's in the header and payload? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiaWF0IjoxNjk5OTk5OTk5fQ.abc123","exampleUseCases":[{"title":"Debug a misbehaving agent token","prompt":"I have a JWT that my agent is sending and I want to see exactly what claims are in it — can you decode this token and show me the payload? eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZ2VudC0xIiwicm9sZSI6IndvcmtlciJ9.sig"},{"title":"Inspect token expiry without a secret","prompt":"Can you pull apart this JWT and tell me if it has an expiration claim and what the subject is? I don't have the signing secret, I just need to read what's inside: eyJhbGciOiJub25lIn0.eyJzdWIiOiJ0ZXN0IiwiZXhwIjoxNzAwMDAwMDAwfQ."},{"title":"Check algorithm used in a token","prompt":"What algorithm does this JWT use in its header, and what does the payload say? Token: eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiYWxpY2UifQ.sig"}],"resultDescription":"Returns a JSON object with three fields: header (containing the algorithm and token type claims), payload (containing all the JWT body claims such as sub, iat, exp), and verified (a boolean indicating whether the signature was validated). The response matches the structure {header, payload, verified}.","failureModes":["Malformed or non-JWT string input returns an error or unparseable result","Token with an unsupported encoding may fail to decode","Network or worker error returns a non-200 response","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Use this endpoint when an AI agent needs to cheaply and quickly inspect the contents of a JWT without needing to implement a full JWT library. It is ideal for debugging, logging, or extracting claims for downstream logic. Prefer it over building in-process JWT parsing when the agent runtime lacks native libraries, or when you want a pay-per-call microservice pattern with no setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:56.637Z","isFirstParty":false,"canonicalSlug":"one-engine-jwt-decode-9c2d5bb5"}