{"uid":"cap_SziwEEqR6hJ427AnVEyrd","slug":"capi2-base64-encode-fa37ba1b","name":"capi2 Base64 Encode","description":"Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.","url":"https://capi2-demand-tools.onrender.com/v1/base64/encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"description":"UTF-8 text to process."}}},"responseSchema":{"type":"json","example":{"data":"aGVsbG8gYWdlbnQ=","encoding":"base64","input_bytes":11}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CXO3gVlpyxXqNxXANwcI_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes UTF-8 text to Base64 format, returning the encoded string and byte count.","exampleAgentPrompt":"Can you base64-encode the text 'hello agent' for me so I can embed it in an HTTP header?","exampleUseCases":[{"title":"Encoding credentials for HTTP auth","prompt":"I need to base64-encode the string 'username:password' so I can use it in a Basic Authorization header — can you do that?"},{"title":"Serializing payload for API transport","prompt":"Please base64-encode this JSON payload text so I can safely embed it inside another request body: '{\"event\":\"user_signup\",\"id\":42}'"},{"title":"Encoding a webhook secret","prompt":"Can you base64-encode my webhook secret string 'sk_live_abc123xyz' so I can store it in an environment variable safely?"}],"resultDescription":"Returns a JSON object with the base64-encoded string in the 'data' field, the encoding type ('base64') confirmed in 'encoding', and the number of input bytes in 'input_bytes'.","failureModes":["Empty or missing 'text' field returns a validation error (minLength:1 enforced)","Non-UTF-8 or binary input may cause encoding errors","Payment failure via x402 protocol prevents processing","Service unavailability on Render free tier may cause cold-start latency or downtime"],"whenToPreferThis":"Choose this endpoint when your agent needs a pay-per-call, stateless base64 encoding utility accessible over HTTP without managing a local library — especially useful in sandboxed agent environments where running native code is restricted or when integrating with x402 micropayment workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:43.528Z","isFirstParty":false}