{"uid":"cap_EuZGHY8vs1kT-x53qLxeu","slug":"klymax402-base64-codec-api-94c0a082","name":"klymax402 Base64 Codec API","description":"One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.","url":"https://klymax402.com/api/base64-codec/api/encode","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"The data to encode or decode"},"action":{"type":"string","description":"Action: 'encode' or 'decode' (default: encode)"}}},"responseSchema":{"type":"json","example":{"action":"example","result":"example","urlSafe":"example","inputLength":1,"outputLength":1}},"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_DeeE1WW7y4WkOCdgUODWa","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":"Encodes or decodes strings using Base64 (including URL-safe variant) and returns the result with length metadata.","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me and let me know the output length?","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"I need to base64-encode the string 'myuser:mypassword' so I can use it in an HTTP Basic Authorization header — can you encode it for me?"},{"title":"Decode a mystery base64 token","prompt":"I received this base64 string 'SGVsbG8gV29ybGQ=' and I need to know what it actually says — can you decode it back to plain text?"},{"title":"Generate URL-safe base64 for a link","prompt":"Please base64-encode the string 'user_id=42&session=abc123' and give me the URL-safe version I can use in a query parameter."}],"resultDescription":"A JSON object containing the action performed ('encode' or 'decode'), the resulting string, a URL-safe variant of the output, and the input and output character lengths.","failureModes":["Missing 'data' parameter returns an error or empty result","Invalid action value (not 'encode' or 'decode') may default to encode or return an error","Non-UTF8 or binary data passed as string may cause garbled results","Payment failure (insufficient USDC balance) returns HTTP 402"],"whenToPreferThis":"Use this endpoint when your agent needs a quick, no-setup Base64 encode or decode operation without managing local libraries, or when running in an environment where you want a simple API call instead of executing code. Particularly useful within agent workflows that already use USDC x402 micropayments and need encoding as a utility step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:04:51.038Z","isFirstParty":false}