{"uid":"cap_b5BxlsVA2rO5MdGoRMZx6","slug":"kosoyy-tools-base64-encode-decode-3acb0501","name":"kosoyy tools — Base64 Encode/Decode","description":"Deterministic utility tools, paid per call in USDC (Solana or Base). Unpaid requests return a 402 offer.","url":"https://alert-woodpecker-2022.kosoyyagent.deno.net/api/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data"],"properties":{"op":{"enum":["encode","decode"],"type":"string"},"data":{"type":"string"}}},"responseSchema":{"type":"object","properties":{"ok":{"type":"boolean"},"route":{"type":"string"},"result":{"type":"object"}}},"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_QGdkwrTlohXbRMT1zQ9uq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes a string using Base64, paid per call at $0.001 USDC via x402 on Solana or Base.","exampleAgentPrompt":"Can you Base64-encode the string 'Hello, World!' for me?","exampleUseCases":[{"title":"Encode API credentials for auth header","prompt":"Base64-encode the string 'myuser:mypassword' so I can use it in a Basic Auth header."},{"title":"Decode a Base64 payload from a JWT","prompt":"Decode this Base64 string for me: 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ=='"},{"title":"Prepare image data URI prefix","prompt":"Can you Base64-encode the text 'data:image/png;base64,' followed by 'SGVsbG8=' so I can verify the encoding is correct?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, the route name, and a 'result' object containing the encoded or decoded output string.","failureModes":["Unpaid request returns HTTP 402 with a payment offer detailing how to pay in USDC","Missing required 'data' field returns a validation error","Invalid 'op' enum value (not 'encode' or 'decode') returns an error","Malformed Base64 input on decode may return an error or unexpected result"],"whenToPreferThis":"Use this endpoint when you need a simple, deterministic Base64 encode or decode operation within an x402 micropayment-enabled agent workflow, especially when already integrated with the kosoyy tools suite or when you need a pay-per-call model without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:35:44.541Z","isFirstParty":false,"canonicalSlug":"kosoyy-tools-base64-encode-decode-3acb0501"}