# AgentShelf Base64URL Encoder

> AgentShelf Base64URL Encoder is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Encodes a text string using base64url encoding, with no network calls or LLM involvement.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base64url-encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-base64url-encoder-74957abe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d2yLMlgk_g4cuTRDQRein

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 agentshelf-base64url-encoder-74957abe -d '<json body>'
```

Example prompt: Can you base64url-encode the string 'hello world: this is my payload!' for me so I can use it safely in a URL?

## When to prefer this

Prefer this endpoint when you need deterministic, server-side base64url encoding without relying on an LLM or local code execution. Use it when your agent runtime lacks built-in encoding utilities, when you need guaranteed RFC 4648 URL-safe base64 output, or when you want an auditable, paid API call for compliance reasons. Always try the free sandbox endpoint POST /v1/sandbox/base64url-encode first if available.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input exceeding 100,000 characters is rejected
- Malformed request body returns a 400-level error
- Payment failure (insufficient USDC balance) results in a 402 response and no encoding is performed

## How this service works

Call when an agent needs text encoded with base64url. No network and no LLM. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/base64url-encode first.

## Output

Returns a base64url-encoded representation of the input text string, using the URL-safe alphabet (replacing + with - and / with _) and typically without padding characters, suitable for use in URLs, JWT components, or other contexts requiring URL-safe encoding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "Hello, World!"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-base64url-encoder-74957abe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
