# Delx Indent Text

> Delx Indent Text is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Indents every line of a given text block by a specified number of spaces, returning the formatted multiline result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/indent-text
- 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/delx-indent-text-66c44388
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2QIGhBfSA0CSzmjSytjxd

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-indent-text-66c44388 -d '<json body>'
```

Example prompt: Can you indent every line of the following text by 4 spaces? Here it is: 'function greet() {
  console.log("hello");
}'

## When to prefer this

Choose this endpoint when you need a simple, stateless, no-setup utility to add uniform leading spaces to every line of a text block — especially inside agent pipelines that already use x402 micropayments and need lightweight text formatting without spinning up local code execution. Ideal for formatting nested blocks in prompts, diffs, YAML, or markdown.

## Known failure modes

- Missing or non-integer 'spaces' value returns a validation error
- Empty or missing 'text' field may return an error or empty string
- Payment failure over x402 protocol results in 402 response before processing
- Very large text inputs may be rejected or time out

## How this service works

Indent every line by N spaces. Call when you format nested blocks for agent prompts or diffs. Returns indented multiline text for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the input text with every line prepended by the specified number of spaces, preserving original line breaks and content. Output is a plain multiline string ready for use in prompts, diffs, configs, or any text requiring uniform indentation.

## 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-indent-text-66c44388/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
