{"uid":"cap_HZmtTATcaoAJ3x0bBubIV","slug":"agentresolver-base64-encode-2f1429ec","name":"AgentResolver Base64 Encode","description":"Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.","url":"https://agentresolver.vercel.app/api/base64-encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":131072}}},"responseSchema":{"type":"json","example":{}},"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_bkWqjhog7nk6ARFQk6QMY","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 an input string to Base64 format, returning the encoded result along with metadata about the operation.","exampleAgentPrompt":"Can you base64 encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Encoding API credentials for auth headers","prompt":"I need to base64 encode my username and password combined as 'myuser:mypassword' so I can use it in a Basic Auth header."},{"title":"Embedding JSON payload in URL","prompt":"Take this JSON string '{\"userId\":42,\"role\":\"admin\"}' and base64 encode it so I can safely embed it in a URL parameter."},{"title":"Encoding binary config data","prompt":"I have a raw configuration string 'host=localhost;port=5432;dbname=mydb' — can you base64 encode it so I can store it as a safe text value?"}],"resultDescription":"Returns a JSON object containing the base64-encoded result string, the encoding scheme used (e.g. 'base64'), the operation name, and the number of bytes in the original input string.","failureModes":["Missing required 'input' field returns a validation error","Non-string input type causes a schema validation failure","Very large input strings may hit size limits or timeout","Payment failure (402) if USDC balance is insufficient for the $0.001 fee"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, metered Base64 encoding service accessible via HTTP without setting up local libraries — particularly useful in agent pipelines where encoding is a discrete billable step or where local compute is unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T12:46:32.802Z","isFirstParty":false}