# Newline Trim

> Newline Trim is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Normalizes and trims newlines from a text string, with no network calls or LLM involvement, for a fixed $0.01 USDC fee.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/newline-trim?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/newline-trim-7aea3bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CR7-3JtbXc4RvpG7Fn2JY

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 newline-trim-7aea3bd4 -d '<json body>'
```

Example prompt: Can you normalize and trim the newlines in this text for me: "Hello\n\n\nWorld\n\r\n"?

## When to prefer this

Choose this endpoint when you need a simple, deterministic, no-LLM newline normalization and trim on a text string and are willing to pay $0.01 USDC per call. Prefer the free unpaid POST /v1/sandbox/newline-trim endpoint first if available. Use this paid endpoint when the sandbox is unavailable or when you need guaranteed SLA.

## Known failure modes

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

## How this service works

Call when an agent needs newlines normalized to trim. No network and no LLM. Send JSON {"text":"Hello, World!"}. Exact $0.01 USDC on Base. Try unpaid POST /v1/sandbox/newline-trim first.

## Output

The cleaned text string with newlines normalized and trimmed, returned as a structured response. No external network calls or LLM processing are involved; the transformation is deterministic and purely computational.

## 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/newline-trim-7aea3bd4/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)
