{"uid":"cap_JXz8hPXK60aDO-IxMc6To","slug":"delx-jwt-exp-seconds-349810c4","name":"Delx JWT Exp Seconds","description":"Read JWT exp claim seconds remaining without verifying signature — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that alread…","url":"https://api.delx.ai/api/v1/x402/jwt-exp-seconds","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string","description":"Input field: token."}}},"responseSchema":{"type":"json","example":{"ok":true,"exp":4800000000,"note":"claims only — signature not verified","schema":"delx/util-jwt-exp-seconds/v1","expired":false,"seconds_remaining":3011913675,"signature_verified":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_edFGbUahOSjSYkIw9sRvZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reads the exp claim from a JWT token and returns the number of seconds remaining until expiration, without verifying the signature","exampleAgentPrompt":"How many seconds are left before this JWT expires? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNzE5MDAwMDAwfQ.sig","exampleUseCases":[{"title":"Token refresh preflight in agent pipeline","prompt":"Before making the next API call, check how many seconds are left on this JWT — eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTkwMDAwMDB9.sig — so I know whether to refresh it first."},{"title":"Warn user when session is nearly expired","prompt":"Read the exp claim from this token and tell me how many seconds of session time remain so I can warn the user if it's under 60 seconds: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTkwMDAwMDB9.abc"},{"title":"Debug why a request is failing with 401","prompt":"I'm getting 401 errors and I think my token might already be expired — can you check how many seconds are left on this JWT: eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZ2VudCIsImV4cCI6MTcxOTAwMDAwMH0.xyz"}],"resultDescription":"Returns a deterministic JSON object containing the number of seconds remaining until the JWT's exp claim, computed locally without signature verification. May also include the raw exp timestamp. Result is advisory — no authorization decisions are made by the endpoint.","failureModes":["Token is malformed or not a valid JWT — returns error indicating unparseable token","Token has no exp claim — returns error or null seconds remaining","Token is already expired — returns zero or negative seconds remaining","Empty or missing token field — returns validation error"],"whenToPreferThis":"Use this endpoint when an agent needs a fast, cheap, stateless preflight check on JWT token lifetime before making an API call — especially when signature verification is unnecessary (handled elsewhere) and you only need to know how much time is left. Ideal for refresh-gate logic, session warning UX, or debugging 401 errors in an automated pipeline. Prefer this over building your own JWT parsing logic when you want a deterministic, zero-dependency utility at $0.001 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:39.054Z","isFirstParty":false}