{"uid":"cap_3NgC_J0zGd9pVIhEq_PMs","slug":"agent-format-jwt-header-payload-decode-ddcc8981","name":"Agent Format – JWT Header/Payload Decode","description":"Encoding utilities for AI agents: base64 encode/decode, hex encode/decode, URL slugify, JWT header/payload decode (no signature verify), and case conversion. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-format.annushka1190.workers.dev/v1/jwt/decode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FnsG-n8LKgqni2iubodtA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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's header and payload sections without verifying the signature, returning the raw claims as JSON.","exampleAgentPrompt":"Can you decode this JWT for me and show me what's in the header and payload — eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c — no need to verify the signature, just show me the claims.","exampleUseCases":[{"title":"Inspect expiry of a Bearer token","prompt":"I have this Bearer token from our API response and I need to know when it expires — can you decode the JWT and pull out the exp and iat fields? Here it is: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImV4cCI6MTcwMDAwMDAwMH0.signature"},{"title":"Debug auth claims in development","prompt":"I'm debugging a login flow and need to see exactly what claims are in this JWT our server is issuing — decode it and show me the full header and payload: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJhYmMxMjMiLCJyb2xlIjoiYWRtaW4ifQ.sig"},{"title":"Extract user identity from token","prompt":"Given this JWT from the authorization header, what is the user's sub (subject) and which issuer signed it? Just read the payload, no signature check needed: eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJzdWIiOiJ1c2VyXzc3NyIsImlzcyI6ImF1dGgubXlhcHAuY29tIn0.abc"}],"resultDescription":"Returns a JSON object with ok:true and the decoded JWT header (algorithm, token type) and payload (all claims such as sub, iat, exp, iss, aud, custom fields) as plain JSON objects. Does not validate or verify the cryptographic signature.","failureModes":["Malformed JWT string (not three base64url segments) returns an error","Non-JWT input (plain string, random base64) causes parse failure","Missing 'input' field in request body returns validation error","Payment failure or insufficient USDC balance blocks the request via x402"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-account, pay-per-use JWT inspection that works without the signing secret or public key. Ideal for agents that need to read token claims (expiry, subject, roles) at runtime without managing API keys. Not suitable when signature verification is required for security purposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:58.346Z","isFirstParty":false}