{"uid":"cap_dJI-SARtGxsd5VFiFUJI6","slug":"bolt-base64-encode-decode-cd4fdf09","name":"Bolt Base64 Encode/Decode","description":"Utility toolkit for AI agents. 54 endpoints — tools, data, and AI processing. Pay per request in USDC via x402.","url":"https://datsavalt.vercel.app/api/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"action":{"enum":["encode","decode"],"type":"string"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_FPmDY1cZmaK7Yvtg8mgrc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes a text string using Base64 encoding","exampleAgentPrompt":"Can you base64 encode the text 'Hello, World!' for me?","exampleUseCases":[{"title":"Encoding credentials for API auth","prompt":"I need to base64 encode my API credentials string 'myuser:mypassword123' so I can use it in a Basic Auth header."},{"title":"Decoding an obfuscated config value","prompt":"Can you decode this base64 string for me: 'SGVsbG8sIFdvcmxkIQ==' — I need to see what the original text says."},{"title":"Encoding JSON payload for transmission","prompt":"Please base64 encode this JSON string so I can safely embed it in a URL parameter: '{\"userId\": 42, \"role\": \"admin\"}'."}],"resultDescription":"Returns a JSON object with a success boolean and a data object containing the result of the encode or decode operation — either the Base64-encoded version of the input text, or the original plaintext decoded from a Base64 string.","failureModes":["Invalid Base64 string passed to decode action — may return an error or malformed result","Missing required 'text' field returns a validation error","Passing an unsupported action value outside the 'encode'/'decode' enum may cause an error","Network or server-side errors may return success: false with no data"],"whenToPreferThis":"Use this endpoint when your agent needs a quick, pay-per-use Base64 encode or decode operation without setting up a local library. Ideal for agents operating in environments where code execution is restricted, or when you want a consistent API-based approach to encoding/decoding as part of a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:30:41.320Z","isFirstParty":false,"canonicalSlug":"bolt-base64-encode-decode-cd4fdf09"}