{"uid":"cap_8IU0wMlKE6sCbL-YA4AS4","slug":"tinydata-api-base64-encode-decode-e577c54d","name":"TinyData API — Base64 Encode/Decode","description":"Hash text, encode or decode Base64, and clean CSV. Pay $0.001–$0.01 per successful request in USDC on Polygon via x402.","url":"https://cleanrows-api.lyra-lavende-7298.chatgpt.site/api/encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text","action"],"properties":{"text":{"type":"string"},"action":{"enum":["base64_encode","base64_decode","base64url_encode","base64url_decode"],"type":"string"}}},"responseSchema":{"type":"object","required":["ok","action","result","inputCharacters","outputCharacters"],"properties":{"ok":{"type":"boolean","const":true},"action":{"enum":["base64_encode","base64_decode","base64url_encode","base64url_decode"],"type":"string"},"result":{"type":"string"},"inputCharacters":{"type":"integer","minimum":0},"outputCharacters":{"type":"integer","minimum":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_wmoy7yQkJmZ5MqV3T3J4p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes text using Base64 or Base64URL encoding schemes, returning the transformed string with character counts.","exampleAgentPrompt":"Base64-encode the string 'Hello, World!' for me using the standard base64_encode action.","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"I need to Base64-encode the string 'myuser:mypassword' so I can use it in a Basic Authorization header — can you do a base64_encode on that?"},{"title":"Decode a Base64 payload from a webhook","prompt":"I just got a webhook with a base64-encoded body: 'eyJldmVudCI6InBheW1lbnQifQ==' — can you decode it back to readable text using base64_decode?"},{"title":"Convert URL-safe Base64URL token to plain text","prompt":"I have this Base64URL token 'eyJhbGciOiJIUzI1NiJ9' and I need to decode it to see what's inside — please run base64url_decode on it."}],"resultDescription":"Returns a JSON object with `ok: true`, the action performed, the transformed `result` string, and the character counts of both the input and output strings.","failureModes":["Invalid action enum value returns an error — must be one of base64_encode, base64_decode, base64url_encode, base64url_decode","Malformed Base64 input passed to a decode action may return a decoding error","Missing required fields (text or action) will result in a validation error","Payment failure (insufficient USDC balance on Polygon/Base) will block the request via x402"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid-per-call Base64 or Base64URL encode/decode operation without standing up your own tooling — especially useful in agentic workflows that already use x402 micropayments on Polygon or Base and need character count metadata alongside the transformed result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T04:21:00.497Z","isFirstParty":false,"canonicalSlug":"tinydata-api-base64-encode-decode-e577c54d"}