# Delx Base64url Encode

> Delx Base64url Encode 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).

Base64url-encodes a text string without padding, suitable for JWT segments and URL-safe tokens

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/base64url-encode
- 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-encode-95bb3db6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f5orM87xNKbpDpEQZPy9L

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-encode-95bb3db6 -d '<json body>'
```

Example prompt: Can you base64url-encode this text for me without any padding: '{"alg":"HS256","typ":"JWT"}'?

## When to prefer this

Choose this endpoint when you need base64url encoding specifically (URL-safe alphabet, no padding) rather than standard base64, particularly for building JWT segments, OAuth tokens, or any context where = padding and +/. characters would be problematic in URLs. Use it when you want a stateless, keyless, dependency-free encoding call without implementing the algorithm yourself.

## Known failure modes

- Missing or empty 'text' field returns an error
- Non-string input types may be rejected
- Payment failure via x402 prevents execution
- Extremely large text strings may hit size limits

## How this service works

Base64url-encode text without padding. Call when you build JWT-like segments or URL-safe tokens. Returns encoded text 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 the base64url-encoded representation of the input text, using the URL-safe alphabet (- and _ instead of + and /) with no = padding characters appended.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "aGVsbG8tZGVseA",
  "schema": "delx/util-base64url-encode/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-base64url-encode-95bb3db6/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)
