{"uid":"cap_n21ShoR9VYk8wkXVAZTqp","slug":"agentshelf-base64-encode-7829888c","name":"AgentShelf Base64 Encode","description":"Call when an agent needs text encoded with base64. No network and no LLM. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/base64-encode first.","url":"https://agentshelf.syntexa.ch/v1/base64-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Hello, World!"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J9CCg3snw7bv6Sm6g8FUc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a given text string into its Base64 representation, with no network calls or LLM involvement.","exampleAgentPrompt":"Can you base64 encode this text for me: 'Hello, World! This is my API payload.'","exampleUseCases":[{"title":"Encoding credentials for HTTP Basic Auth","prompt":"I need to base64 encode the string 'myusername:mypassword' so I can put it in an Authorization header for a Basic Auth request."},{"title":"Embedding binary data in JSON payload","prompt":"Take this text and base64 encode it for me so I can safely embed it as a string inside a JSON body: 'user:12345\nrole:admin\nexpires:2025-12-31'"},{"title":"Preparing email attachment content","prompt":"Can you encode this text as base64? I need to include it as the content of a MIME email attachment: 'Dear customer, your invoice total is $450.00.'"}],"resultDescription":"Returns the Base64-encoded representation of the input text string. The output is a standard Base64 string that can be used directly in HTTP headers, JSON payloads, MIME messages, or any context requiring Base64-safe data encoding.","failureModes":["Empty or missing 'text' field returns a validation error","Input exceeding 100,000 characters is rejected due to maxLength constraint","Malformed JSON request body results in a 400-level error","Payment failure or insufficient USDC balance causes a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when an agent needs a deterministic, server-side Base64 encoding of a text string without relying on LLM output or local code execution. It is useful in sandboxed environments where executing local encoding libraries is restricted. Note: the description recommends preferring an unpaid POST /v1/sandbox/base64-encode endpoint if available, as it provides the same function at no cost. Use this paid endpoint when the sandbox alternative is unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:11.743Z","isFirstParty":false,"canonicalSlug":"agentshelf-base64-encode-7829888c"}