# Delx Pad Left

> Delx Pad Left 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).

Left-pads a string to a specified target width using a configurable fill character, returning the padded text and its final width.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/pad-left
- 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-pad-left-7212749d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9WFQ_ehQqMmAfHJl3rpft

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-pad-left-7212749d -d '<json body>'
```

Example prompt: Left-pad the string '42' with zeros so it's exactly 8 characters wide.

## When to prefer this

Choose this endpoint when you need a simple, stateless, no-infrastructure string left-padding operation inside an agent pipeline — especially when you lack a local utility function or want to avoid shipping a formatting library. Ideal for zero-padded IDs, fixed-width alignment, or normalizing variable-length codes before storage, display, or downstream processing.

## Known failure modes

- Missing required field (text or width) returns a 4xx error
- Width smaller than or equal to the original string length returns the string unchanged or an error
- Non-integer width value causes a validation error
- Empty fill character may default to space or cause an error depending on API behavior
- Payment failure or insufficient USDC balance prevents the call from completing

## How this service works

Left-pad a string to a target width. Call when you need fixed-width IDs or zero-padded codes. Returns padded text and width 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 padded text string and its final width as a JSON object, confirming the output length matches the requested target width.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "00042",
  "width": 5,
  "schema": "delx/util-pad-left/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-pad-left-7212749d/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)
