# Unicode Escape Encode

> Unicode Escape Encode is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-29).

Encodes a text string using Python-style unicode-escape encoding, returning the escaped byte representation, with no network calls or LLM involvement.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/unicode-escape-encode?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unicode-escape-encode-b1063964
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PrPS63eTChtmdnj8wuqGa

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 unicode-escape-encode-b1063964 -d '<json body>'
```

Example prompt: Can you unicode-escape encode this string for me: 'Hello, 世界! 🌍'?

## When to prefer this

Choose this endpoint when you need deterministic, offline unicode-escape encoding of a text string without any LLM inference or external network calls. It is ideal for encoding non-ASCII, emoji, or multilingual text into ASCII-safe escape sequences for config files, source code, or data serialization. Prefer the free sandbox POST /v1/sandbox/unicode-escape-encode endpoint first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Text exceeding 100,000 characters is rejected
- Malformed request body returns a 400 error
- Payment not attached or insufficient USDC results in 402 Payment Required

## How this service works

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

## Output

The endpoint returns the unicode-escape-encoded version of the input text string, where non-ASCII and special characters are replaced with \uXXXX or \UXXXXXXXX escape sequences, suitable for embedding in ASCII-safe contexts like config files, source code literals, or JSON.

## 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/unicode-escape-encode-b1063964/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)
