{"uid":"cap_rHkmR0YZRWuoVlVqjlMGo","slug":"agentkit-jwt-encode-8d894199","name":"AgentKit JWT Encode","description":"Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.","url":"https://api.firstmention.uk/s/agentkit/encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"budget":{"type":"number"}}},"responseSchema":{"type":"json","example":{"header":{"alg":"none"},"payload":{"sub":"123"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qd4uocc_E9RJ2eQ77hKeG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a JWT token with a given algorithm and payload using the agentkit service","exampleAgentPrompt":"Can you encode a JWT for me using agentkit — the subject should be '123' and I need the header to use alg 'none', with the standard payload fields?","exampleUseCases":[{"title":"Agent credential token creation","prompt":"I need to create a JWT token for my agent with subject ID 'agent-7f3a' and alg set to none — can you encode that for me?"},{"title":"Lightweight auth token for API testing","prompt":"Can you generate a JWT token with alg none and a payload where sub is 'test-user-42' so I can test my API endpoint locally?"},{"title":"Encode structured claims for downstream service","prompt":"Please encode a JWT using agentkit where the payload has sub set to 'svc-backend-01' — I need to pass it along as an identity token to another service."}],"resultDescription":"A JSON object containing the encoded JWT structure with two fields: 'header' (e.g. {\"alg\":\"none\"}) and 'payload' (e.g. {\"sub\":\"123\"}), representing the decoded components of the generated JWT token.","failureModes":["Missing or invalid 'op' field results in unrecognized operation error","Malformed 'input' string may cause JSON parse failure or encoding error","Unsupported algorithm specified in header may return an error or fallback","Payment not included or insufficient USDC causes HTTP 402 response","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call JWT encoding service that integrates with the x402 micropayment protocol on Base. It is best suited for agents operating in crypto-native environments where USDC micropayments are preferred over API key subscriptions, and where simple JWT creation (especially with alg:none for testing or internal use) is needed without spinning up a full auth library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:33:56.566Z","isFirstParty":false,"canonicalSlug":"agentkit-jwt-encode-8d894199"}