# Delx Sort Lines

> Delx Sort Lines 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-13).

Sorts lines of text in ascending or descending order, returning a reordered list.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/sort-lines
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-sort-lines-ca7fad6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8iZZmB6yi_vFzYdRre7uA

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-sort-lines-ca7fad6c -d '<json body>'
```

Example prompt: Can you sort these lines alphabetically for me: 'Banana
Apple
Cherry
Date'?

## When to prefer this

Use this endpoint when you need a quick, cheap, single-call line-sorting operation without setting up local sorting logic in your agent pipeline. At $0.001 per call, it's cost-effective for agents that offload text utilities to specialized microservices.

## Known failure modes

- Empty input returns empty or error response
- Non-text or binary input may cause a parsing error
- Very large inputs may exceed payload limits
- Payment failure (402) if USDC balance is insufficient or x402 header is missing

## How this service works

Sort lines of text for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns the input lines reordered in sorted sequence (ascending or descending), suitable for direct use or downstream processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-sort-lines-ca7fad6c/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)
