{"uid":"cap_dH1b7eOGD_cb4ZNO2TxgA","slug":"base64-encode-decode-dc260a62","name":"Base64 Encode/Decode","description":"Base64 encode or decode a string — base64 encoder/decoder (body {mode:encode|decode,input}).","url":"https://conclavex402p04.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_w9ZJheQxcbkbtANSEqDB-","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 plain string to Base64 or decodes a Base64 string back to plain text via a simple POST request.","exampleAgentPrompt":"Can you base64-encode the string 'Hello, World!' for me so I can embed it in a JSON payload?","exampleUseCases":[{"title":"Encoding credentials for Basic Auth","prompt":"Base64-encode the string 'myuser:mypassword' so I can use it as a Basic Auth header value."},{"title":"Decoding a base64 API response payload","prompt":"I got this base64 string back from an API — 'eyJrZXkiOiJ2YWx1ZSJ9' — can you decode it so I can read the actual content?"},{"title":"Encoding a config file snippet for transport","prompt":"Encode this text as base64 so I can safely pass it through a URL parameter: 'server=localhost;port=5432;db=myapp'."}],"resultDescription":"Returns a JSON object with a single field: 'base64', containing either the base64-encoded version of the input string (when mode is 'encode') or the decoded plain-text string (when mode is 'decode').","failureModes":["Missing 'input' or 'mode' fields in the request body returns a 400 error","Providing an invalid base64 string for decoding may return an error or garbled output","Incorrect body structure (e.g. wrong bodyType) will result in a parsing failure","Network or server timeout on pythonanywhere.com hosting may cause intermittent 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless base64 encode or decode operation within an x402 pay-per-call workflow, especially when already using other Conclave utility endpoints (e.g. hex encode, JWT decode) and want a consistent interface. Prefer it over local computation when operating in a sandboxed agent environment without native base64 libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:45:44.785Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-dc260a62"}