{"uid":"cap_wLnF2o5ZWHaOaynJO6ZAv","slug":"string-encoder-base64-base64url-hex-da838d1f","name":"String Encoder (Base64, Base64URL, Hex)","description":"Encode a string. ?to=base64|base64url|hex&input=hello","url":"https://pyfile-agent.taile3ff35.ts.net:10000/data/encode","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"type":"string"},"input":{"type":"string"}}}}},"output":{"type":"object"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_chVv2b6DHHFf4d1HTpbZX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a string into base64, base64url, or hex format via a simple HTTP GET request.","exampleAgentPrompt":"Can you encode the string 'Hello, World!' to base64 for me?","exampleUseCases":[{"title":"Base64-encode credentials for HTTP Basic Auth","prompt":"I need to encode the string 'myuser:mypassword' to base64 so I can use it in an HTTP Basic Auth header."},{"title":"Hex-encode a hash string for display","prompt":"Convert the string 'deadbeef-cafe-1234' to hex encoding so I can pass it to this system that expects hex format."},{"title":"URL-safe base64 for JWT or OAuth token","prompt":"Encode the string '{\"sub\":\"1234\",\"name\":\"Alice\"}' using base64url so it's safe to use in a URL or JWT payload."}],"resultDescription":"Returns the encoded representation of the input string in the requested format (base64, base64url, or hex). The response is a JSON object containing the encoded output string and likely the encoding type used.","failureModes":["Missing 'input' query parameter returns an error","Invalid or unsupported 'to' encoding format returns an error","Empty string input may return an empty encoded result","Network or server errors return non-200 HTTP status"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless string encoding into base64, base64url, or hex without setting up local encoding libraries. Ideal for agents that need to prepare encoded values for HTTP headers, URLs, or data serialization on the fly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:07:02.186Z","isFirstParty":false}