{"uid":"cap_-OEJREn46S3Y4CfQ0cvnG","slug":"base64-encode-decode-cfcfed7a","name":"Base64 Encode/Decode","description":"Base64 encode or decode a string — base64 encoder/decoder (body {mode:encode|decode,input}).","url":"https://conclavex402.pythonanywhere.com/u/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base64":"aGVsbG8="}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cRqxItq6EQ6Ym5yhqZnxI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a plaintext string to Base64 or decodes a Base64 string back to plaintext via a simple POST request.","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Encoding credentials for API auth","prompt":"I need to base64-encode the string 'myuser:mypassword' so I can use it in a Basic Auth header — can you do that?"},{"title":"Decoding an embedded base64 payload","prompt":"I received this base64 string 'SGVsbG8sIFdvcmxkIQ==' and I need to decode it back to readable text."},{"title":"Preparing binary data for JSON transport","prompt":"Can you base64-encode the string 'invoice_id=12345&amount=99.99' so I can safely embed it in a JSON field?"}],"resultDescription":"A JSON object containing a single field 'base64' with the encoded or decoded result string, e.g. {\"base64\": \"aGVsbG8=\"}.","failureModes":["Missing or invalid 'mode' field returns an error","Invalid Base64 input during decode (non-Base64 characters) may return an error or garbage","Empty input string may return an empty result or error","Malformed request body (wrong content type or missing required fields) returns 4xx error"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call Base64 encode or decode operation without spinning up local code or a dedicated library — especially useful for AI agents operating in environments where running arbitrary code is unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:42:29.729Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-cfcfed7a"}