# AgentShelf JSON Minify

> AgentShelf JSON Minify 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).

Minifies (compresses) a JSON string by removing all unnecessary whitespace, returning a compact single-line JSON output.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/json-minify?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-json-minify-88cbeb4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CTu4KchRA3O3CLv2lR8DH

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-json-minify-88cbeb4d -d '<json body>'
```

Example prompt: Can you minify this JSON for me — strip out all the whitespace and indentation so it's compact: {"name": "Alice", "age": 30, "active": true}?

## When to prefer this

Choose this endpoint when you need a pure, offline JSON minification with no external network calls and a guaranteed flat $0.001 USDC cost. Prefer the free unpaid POST /v1/sandbox/json-minify endpoint first if available. Use this paid version when the sandbox is unavailable or when a reliable production-grade response is required for minification only — not for sorting keys, deep sorting, or format conversion (use sibling endpoints for those).

## Known failure modes

- Invalid or malformed JSON input returns an error — the endpoint does not repair broken JSON
- Empty text field (minLength:1) returns a validation error
- Input exceeding 100,000 characters is rejected
- Non-JSON text (e.g. plain strings, YAML, XML) will likely fail or return an error

## How this service works

Call when an agent needs JSON rewritten with the minify transform. No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/json-minify first.

## Output

Returns a compact, single-line JSON string with all unnecessary whitespace, newlines, and indentation removed. The JSON structure and values are preserved exactly; only formatting characters are stripped.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "{\"b\":1,\"a\":2}"
   ],
   "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-json-minify-88cbeb4d/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)
