{"uid":"cap_U--UAdQIm5D-NHVWlGGaO","slug":"whatchuneed-base64-encoder-decoder-4e1ea584","name":"whatchuneed Base64 Encoder/Decoder","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/util/base64","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Request input"}}},"responseSchema":{"type":"object","properties":{"result":{"type":"object","description":"Response data"},"status":{"type":"string"}}},"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_lEsI8ObLNHL6aO_cLA1Q4","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 or decodes a string using Base64 transformation via a pay-per-call utility endpoint","exampleAgentPrompt":"Can you base64 encode this string for me: 'Hello, World! My secret token is abc123'?","exampleUseCases":[{"title":"Encode credentials for API auth","prompt":"I need to base64 encode the string 'myuser:mypassword' so I can use it in a Basic Authorization header for an API request."},{"title":"Decode a base64 payload from a JWT","prompt":"Can you decode this base64 string for me and show me the plain text: 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ=='?"},{"title":"Encode file content for email attachment","prompt":"Take this raw text 'Invoice #4521 - Total: $200' and base64 encode it so I can embed it safely in an email payload."}],"resultDescription":"Returns a JSON object with a 'result' field containing the transformed Base64 output (encoded or decoded string) and a 'status' field indicating success or failure of the operation.","failureModes":["Missing or empty 'input' field returns a validation error","Passing binary or non-UTF8 data as a string may produce unexpected results","Ambiguous input (neither valid Base64 nor plain text) may result in incorrect operation direction","Network or payment failure via x402 protocol returns a 402 Payment Required error","Malformed JSON body returns a 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a quick, serverless, pay-per-call Base64 encode or decode operation without setting up a local utility or dependency. Useful for AI agents that need to encode credentials, tokens, or payloads on the fly within an automated workflow, especially when already using the whatchuneed API ecosystem for other tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:20.958Z","isFirstParty":false}