# HTTPay Base64 Decode API

> HTTPay Base64 Decode API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Decodes a base64-encoded string (standard or URL-safe) back to its original text, paid per-call via USDC on Base

## Facts

- Endpoint: POST https://httpay.xyz/api/base64-decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-base64-decode-api-f876a1e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3lfMLHMm4_kmQXQmK-Qs0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-base64-decode-api-f876a1e9 -d '<json body>'
```

Example prompt: Decode this base64 string back to plain text for me: 'SGVsbG8sIFdvcmxkIQ=='

## When to prefer this

Choose this endpoint when you need a lightweight, serverless, no-auth-key base64 decode operation billed at $0.001 USDC per call via x402 on Base — ideal for agents operating in crypto-native pipelines where traditional API key management is undesirable and microtransaction billing is preferred.

## Known failure modes

- Invalid base64 input returns an error response
- Malformed JSON body causes a 400 bad request
- Payment not fulfilled results in x402 payment required response
- URL-safe base64 with incorrect padding may fail to decode

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

A JSON object containing the decoded plain-text string obtained by reversing the base64 encoding of the input, supporting both standard and URL-safe base64 variants, processed using Node.js Buffer with no external dependencies.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Decode a base64-encoded string back to text. POST JSON body: {encoded}. Supports standard and URL-safe base64. Uses Node.js built-in Buffer. Zero external dependencies."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-base64-decode-api-f876a1e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
