# Delx Object Empty

> Delx Object Empty 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).

Checks whether a JSON object is empty and returns an empty flag and size count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/obj-empty
- 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-object-empty-ac70c697
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zcJVT57w3l3XbNh65ft0l

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-object-empty-ac70c697 -d '<json body>'
```

Example prompt: Can you check whether this JSON object is empty for me: {"user": {}}? I need to know if it has any keys before I continue.

## When to prefer this

Choose this endpoint when you need a lightweight, local, no-network check to gate agent workflows on whether a JSON object body is empty. It is ideal for pre-flight guards before expensive downstream API calls, and useful when you want a deterministic empty+size signal without writing inline logic.

## Known failure modes

- Non-object input (e.g. array or primitive) may return an error or unexpected result
- Malformed JSON body causes a 400-level error
- Missing 'object' field in request body returns an error
- Network timeout or service unavailability returns 5xx

## How this service works

Check whether an object is empty. Call when you gate agent workflows on empty JSON bodies. Returns empty flag and size 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 an empty boolean flag indicating whether the object has zero keys, along with the size (number of top-level keys) of the object.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 0,
  "empty": true,
  "schema": "delx/util-obj-empty/v1"
 }
}
```

## More

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