{"uid":"cap_AH7wP7qXJ6w9hCLo2K6gw","slug":"profitcollector-base64-encode-f31263d0","name":"ProfitCollector Base64 Encode","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/base64/encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"encoded":"aGVsbG8="}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_09dRsHdFQMtrTP35vQOwG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a plain text string into its Base64 representation","exampleAgentPrompt":"Can you base64-encode the text 'Hello, World!' for me?","exampleUseCases":[{"title":"Basic auth header preparation","prompt":"Encode 'myuser:mypassword' as base64 so I can put it in an Authorization header for a basic auth request."},{"title":"Safe payload embedding in URL","prompt":"I need to embed this JSON string '{\"key\":\"value\",\"flag\":true}' into a URL parameter — can you base64-encode it first?"},{"title":"Email binary-safe encoding","prompt":"Base64-encode this raw text so I can safely include it in a MIME email body without breaking the formatting."}],"resultDescription":"A JSON object containing a single field 'encoded' with the Base64-encoded version of the input text string (e.g. {\"encoded\": \"aGVsbG8=\"}).","failureModes":["Missing or empty 'text' field returns an error response","Non-string input types may cause a validation error","Payment failure (402) if USDC balance is insufficient","Network timeout on the api.bakhour.ca host"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic Base64 encoding of a plain text string inside an automated workflow or agent pipeline and want a simple paid API call rather than running a local encoding library. It is especially useful in sandboxed or restricted environments where standard library access is limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:48:57.743Z","isFirstParty":false}