# Delx Commerce — Indent Text

> Delx Commerce — Indent Text is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Adds a specified number of leading spaces to each line of a given text string.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/indent-text?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-indent-text-fc67be2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5KxqLEJOmWSvBXcszOhRH

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-commerce-indent-text-fc67be2b -d '<json body>'
```

Example prompt: Indent the following text by 4 spaces: 'line1\nline2\nline3'

## When to prefer this

Choose this endpoint when an AI agent needs a simple, reliable, pay-per-use text indentation operation without any signup or subscription — ideal for lightweight formatting tasks in pipelines where agents autonomously pay per result via x402 on Base or Solana. Prefer this over custom string manipulation when verifiable, paid delivery and minimal setup are priorities.

## Known failure modes

- Missing 'text' field — request fails or returns an error
- Non-integer value for 'spaces' — validation error
- Empty text string — may return empty or trivially indented result
- Network or payment failure — 402 or connection error if USDC payment not processed correctly

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the indented text (each original line prefixed with the specified number of spaces), the number of spaces applied, and a schema identifier ('delx/util-indent-text/v1').

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "  line1\n  line2",
  "schema": "delx/util-indent-text/v1",
  "spaces": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-indent-text-fc67be2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
