{"uid":"cap_LORqHTizLf-ZsrXqqvkyj","slug":"base64-encode-decode-56edac86","name":"Base64 Encode/Decode","description":"Real-time airfare intelligence for AI travel-booking agents: flight price-drop prediction, fare-fraud and deal-legitimacy verification, and verified booking links for any route and date. Pay-per-call in USDC on Base. No API key.","url":"https://tripguard-fare-intel.onrender.com/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"]},"input":{"type":"string","maxLength":65536},"urlsafe":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"mode":"encode","bytes":11,"output":"aGVsbG8gd29ybGQ="}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.12","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.12/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gKjQe0sku-38wpCeL2-mh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes a string using Base64 (standard or URL-safe variant)","exampleAgentPrompt":"Can you base64-encode the string 'hello world' for me using standard encoding?","exampleUseCases":[{"title":"Encode API credential for header","prompt":"Base64-encode the string 'myusername:mypassword' so I can use it in a Basic Auth header."},{"title":"Decode a JWT payload segment","prompt":"Decode this base64 string for me so I can read what's inside it: 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ=='"},{"title":"URL-safe base64 for web token","prompt":"Encode the string 'user_id=42&session=abc123' in URL-safe base64 so it's safe to put in a query parameter."}],"resultDescription":"Returns a JSON object with the mode used, the character count of the input in bytes, and the output string (Base64-encoded or decoded plaintext depending on mode selected).","failureModes":["Input string exceeds 65536 character limit — request rejected","Invalid base64 input during decode — may return error or garbled output","Missing or invalid mode enum value — request fails validation","Non-UTF-8 binary input may not round-trip cleanly through the string field"],"whenToPreferThis":"Use this endpoint when you need a simple, stateless Base64 encode or decode operation without setting up a local library, especially in agent pipelines that already use x402/USDC micropayments on Base. The URL-safe flag makes it suitable for generating web-safe tokens. Note: the branding ('TripGuard Fare Intelligence') and pricing description are inconsistent with the actual /base64 endpoint functionality — this endpoint performs Base64 conversion only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:35:18.228Z","isFirstParty":false,"canonicalSlug":"base64-encode-decode-56edac86"}