{"uid":"cap_c0-pGSL8r8RsLaIJCKmFh","slug":"base64-encode-decode-e2e3559b","name":"Base64 Encode/Decode","description":"Base64 encode/decode with auto-detection: valid base64 input is decoded (UTF-8), anything else is encoded; force with 'encode:' or 'decode:'. Also returns URL-safe base64 and hex. $0.01 per call.","url":"https://intel.rallylive.ca/data/base64","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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fNIwuZfMogXdwN-X5Xo9w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Auto-detects whether input is base64 and encodes or decodes it accordingly, also returning URL-safe base64 and hex representations","exampleAgentPrompt":"Can you base64 encode the string 'Hello, World!' and also give me the URL-safe base64 and hex versions?","exampleUseCases":[{"title":"Decoding a JWT payload segment","prompt":"Decode this base64 string for me so I can read the JWT payload: eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ=="},{"title":"Encoding credentials for Basic Auth header","prompt":"I need to encode 'myuser:mysecretpassword' into base64 so I can use it in a Basic Auth header — can you do that and also give me the URL-safe version?"},{"title":"Converting arbitrary text to hex","prompt":"Take the string 'api-key-12345' and give me its base64 encoding along with the hex representation."}],"resultDescription":"Returns the standard base64-encoded or decoded UTF-8 string depending on auto-detection or explicit prefix, along with the URL-safe base64 variant and the hexadecimal representation of the input.","failureModes":["Invalid UTF-8 sequence when decoding results in an error","Malformed base64 with padding issues may cause decode failure","Very large inputs may time out or be rejected","Missing required 'input' query parameter returns an error"],"whenToPreferThis":"Choose this endpoint when you need a quick, auto-detecting base64 encode/decode operation that also returns URL-safe base64 and hex in a single call, avoiding the need to manually determine whether to encode or decode. Ideal for agents that process mixed or unknown-origin base64 data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:06:50.663Z","isFirstParty":false}