# Delx Array First

> Delx Array First 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).

Returns the first element of an input array along with an empty flag, safely handling edge cases.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/arr-first
- 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-array-first-f1b5b163
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JXiRtn4Bg_RmNHdu9_3hm

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-array-first-f1b5b163 -d '<json body>'
```

Example prompt: I have this array ["apple", "banana", "cherry"] — can you safely get me the first element and tell me if the list was empty?

## When to prefer this

Choose this endpoint when you need a reliable, safe way to retrieve the first element of an agent-held array without writing custom index logic, especially when you need an explicit empty-array signal to guard downstream workflow steps. Ideal for lightweight agentic pipelines that already use x402 micropayments on Base and want a stateless, no-retention utility call.

## Known failure modes

- Missing or null 'items' field returns a validation error
- Non-array value for 'items' causes a type error
- Payment failure or insufficient USDC balance results in 402 response
- Network timeout if the x402 payment handshake stalls

## How this service works

Return the first list element. Call when you need head of an agent-held array safely. Returns value and empty flag 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 first element of the provided array and a boolean empty flag indicating whether the array had no items. If the array is empty, the value field will be absent or null and the empty flag will be true.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "Input field: items."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "empty": false,
  "value": "alpha",
  "schema": "delx/util-arr-first/v1"
 }
}
```

## More

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