# Keyronne Encode/Decode API

> Keyronne Encode/Decode API is a paid API for AI agents from keyronne.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes and decodes text across base64, base64url, hex, URL-encoding, and HTML entities (UTF-8 safe), and decodes JWTs into readable header/payload with human-readable timestamps.

## Facts

- Endpoint: POST https://keyronne.com/api/encode
- 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/keyronne-encode-decode-api-67c8148e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lTo7EMFJ5UWYxUNFyc5i6

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 keyronne-encode-decode-api-67c8148e -d '<json body>'
```

Example prompt: Decode this JWT for me so I can see what's in the header and payload, including the expiration time in a readable format: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need reliable, UTF-8-safe text encoding or decoding across base64, base64url, hex, URL, or HTML codecs, or when you need to quickly inspect a JWT's contents (header, payload, expiry) without signature verification. Prefer this over rolling your own codec logic in an LLM context, where encoding edge cases are easily mishandled.

## Known failure modes

- Invalid base64 input returns a decode error
- Unsupported codec value returns a 400 validation error
- Malformed JWT string returns a parsing error
- Missing required fields (text or jwt) returns a 400 error
- Invalid JSON body returns a 400 parse error

## How this service works

Encode and decode text across base64, base64url, hex, URL-encoding, and HTML entities (UTF-8 safe). Also decodes (does not verify) JWTs into header and payload with human-readable exp/iat times. Built for wrangling tokens, data URIs, and escaped strings. POST a JSON body like: {"text":"hello world","codec":"base64","operation":"encode"}

## Output

Returns the encoded or decoded string for the given codec (base64, base64url, hex, url, html). For JWT mode, returns the decoded header object, payload object, and human-readable exp and iat timestamps without performing signature verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "jwt": {
   "type": "string",
   "description": "Alternative mode: decode this JWT (no signature verification)."
  },
  "text": {
   "type": "string",
   "description": "The text to encode or decode."
  },
  "codec": {
   "enum": [
    "base64",
    "base64url",
    "hex",
    "url",
    "html"
   ],
   "type": "string"
  },
  "operation": {
   "enum": [
    "encode",
    "decode"
   ],
   "type": "string",
   "default": "encode"
  }
 }
}
```

## More

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