{"uid":"cap_3I3wujnraeBHnHW4_Q22x","slug":"base64-encode-decode-api-x402-v2-mint-20f61b1f","name":"Base64 Encode/Decode API (x402-v2-mint)","description":"Base64 encode/decode UTF-8 text (standard or URL-safe). Offline. Amp port.","url":"https://x402-v2-mint-base64.vercel.app/v1/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string"},"text":{"type":"string","maxLength":400000,"minLength":0},"url_safe":{"type":"boolean","default":false},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"base64","charged":true,"summary":"ok"}},"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_OJbq3z29CSPntsknsoRYa","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 or decodes UTF-8 text using standard or URL-safe Base64, running fully offline as a paid micropayment endpoint.","exampleAgentPrompt":"Can you base64-encode this text for me: 'Hello, World! This is my secret message' — use URL-safe mode so it's safe to put in a URL query string.","exampleUseCases":[{"title":"Encode JWT payload for transmission","prompt":"Take this JSON string '{\"user_id\":\"abc123\",\"role\":\"admin\"}' and base64-encode it in standard mode so I can embed it in a JWT header."},{"title":"Decode incoming base64 API response","prompt":"I got this base64 string back from an API — 'SGVsbG8gV29ybGQ=' — can you decode it to plain text for me?"},{"title":"URL-safe base64 for email link","prompt":"Base64-encode this verification token 'verify:user@example.com:2024-token-xyz' using URL-safe mode so I can safely drop it into an email confirmation link."}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'skill' (always 'base64'), 'charged' (whether the micropayment was processed), and 'summary' (short status string). The encoded or decoded result text is included in the response body.","failureModes":["Text exceeds 400,000 character limit — request rejected","Invalid base64 input when decoding (malformed characters) — decode error returned","Invalid mode value (neither 'encode' nor 'decode') — validation error","Empty or missing text field — may return error or empty result","Payment failure via x402 protocol — charged field false, operation not performed"],"whenToPreferThis":"Choose this endpoint when you need a reliable, offline (no external dependency) Base64 encode/decode operation accessible via a paid micropayment API. Ideal for agents that require deterministic, stateless text encoding within an x402 payment workflow. Supports both standard and URL-safe Base64 variants and handles large payloads up to 400KB.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:40:09.142Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-api-x402-v2-mint-20f61b1f"}