# Quartermaster Base64 Encode/Decode

> Quartermaster Base64 Encode/Decode is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes a string to Base64 or decodes a Base64 string back to plain text via a simple GET request.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/base64
- 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/quartermaster-base64-encode-decode-679f4a66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NeE3YfdbN5AaXSz6q64gh

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 quartermaster-base64-encode-decode-679f4a66
```

Example prompt: Can you base64 encode the string 'Hello, World!' for me? Or decode this base64 value: 'SGVsbG8sIFdvcmxkIQ=='

## When to prefer this

Use this endpoint when you need a quick, paid Base64 encode or decode operation in an x402 payment-enabled agentic workflow, especially within the Quartermaster ecosystem where other blockchain and text utilities are co-located.

## Known failure modes

- Missing required 'data' query parameter returns an error
- Invalid Base64 input when using decode operation may return a decoding error
- Payment failure (402) if USDC payment is not processed correctly

## How this service works

Base64 encode or decode a string.

## Output

Returns the Base64-encoded or decoded string result based on the specified operation and input data.

## Request schema (JSON Schema)

```json
{
 "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",
     "required": [
      "data"
     ],
     "properties": {
      "op": {
       "enum": [
        "encode",
        "decode"
       ],
       "type": "string",
       "default": "encode"
      },
      "data": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quartermaster-base64-encode-decode-679f4a66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
