{"uid":"cap_dgk92zs_nc7K35169j3-B","slug":"capi2-base64-decode-2824835b","name":"capi2 Base64 Decode","description":"Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.","url":"https://capi2-demand-tools.onrender.com/v1/base64/decode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","minLength":1,"description":"Base64 or Base64URL string."},"urlsafe":{"type":"boolean","default":false}}},"responseSchema":{"type":"json","example":{"text":"hello agent","encoding":"base64","output_bytes":11}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Uq7y1Z_IbbIZBc-f_6n0y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a Base64 or Base64URL-encoded string into its original UTF-8 text, returning the decoded content and byte count.","exampleAgentPrompt":"Can you decode this base64 string for me: 'aGVsbG8gYWdlbnQ=' — it's standard base64, not URL-safe.","exampleUseCases":[{"title":"Decode JWT payload segment","prompt":"I have this base64url-encoded JWT payload segment: 'eyJ1c2VyIjoiYWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ' — can you decode it to read its contents? Use URL-safe decoding."},{"title":"Interpret encoded webhook data","prompt":"A webhook I received has this base64 field: 'SGVsbG8sIFdvcmxkIQ==' — decode it for me so I can see what the original message says, standard base64."},{"title":"Recover original config value","prompt":"My deployment config has this base64-encoded value: 'ZGF0YWJhc2U6cG9zdGdyZXM=' — decode it back to plain text so I can read the actual setting."}],"resultDescription":"Returns a JSON object containing the decoded plain-text string ('text'), the encoding type used ('encoding', e.g. 'base64'), and the number of bytes in the decoded output ('output_bytes').","failureModes":["Invalid base64 string (non-base64 characters) returns a 4xx error","Empty input string rejected due to minLength:1 constraint","Mismatch between urlsafe flag and actual encoding style may produce garbled output or error","Network timeout if the Render.com host is cold-starting","Payment failure (x402) blocks the request before decoding occurs"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically decode Base64 or Base64URL strings at runtime — especially within an x402 micropayment workflow where the agent is already paying for capi2 utilities. Useful when native Base64 decoding is not available in the agent's execution environment or when the agent needs a verified, auditable decode call with structured metadata (byte count, encoding label) returned alongside the decoded text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:36:47.970Z","isFirstParty":false}