# Delx Base64url Decode

> Delx Base64url Decode is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Decodes a Base64url-encoded string (with optional padding) into its original text, returning the decoded result and an ok status flag.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/base64url-decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-base64url-decode-31d930a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bbhoA6tqMiyv-8ztXMyv0

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 delx-base64url-decode-31d930a6 -d '<json body>'
```

Example prompt: Can you base64url-decode this token for me: 'eyJhbGciOiJIUzI1NiJ9'?

## When to prefer this

Choose this endpoint when you need a simple, stateless, no-auth, local-only Base64url decode operation — especially in agentic pipelines where you want to avoid sending tokens to a general-purpose LLM, need deterministic output, and are already using x402 micropayment infrastructure. Prefer it over rolling your own decode logic when operating in an agent that lacks a native runtime decode function.

## Known failure modes

- Invalid Base64url characters in input — returns error or ok:false
- Empty input string — may return empty string or error
- Input is standard Base64 (with + and / characters) rather than URL-safe Base64url — may fail or produce incorrect output
- Malformed padding causing decode failure

## How this service works

Base64url-decode text (padding optional). Call when you reverse URL-safe tokens held by agents. Returns decoded text and ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object with a 'decoded' field containing the original plain-text string, and an 'ok' boolean indicating whether decoding succeeded. No data is retained server-side.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "text": "hello-delx",
  "schema": "delx/util-base64url-decode/v1"
 }
}
```

## More

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