# Delx Commerce — Object Key Existence Check (obj-has)

> Delx Commerce — Object Key Existence Check (obj-has) is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Checks whether a specified key exists in a given JSON object, returning a boolean result

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/obj-has?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-object-key-existence-check-obj-has-c973260e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DjVVLyfAIeBVJwYZSEYSH

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-commerce-object-key-existence-check-obj-has-c973260e -d '<json body>'
```

Example prompt: Check if the key 'email' exists in this object: {"name": "Alice", "email": "alice@example.com", "age": 30}.

## When to prefer this

Use this endpoint when an AI agent needs a quick, cheap, pay-per-use check for key existence in a JSON object without setting up any account or subscription. Ideal for lightweight data validation steps in an automated pipeline where the agent pays per result via USDC. Prefer over in-code checks when you need verifiable, auditable delivery proof of the validation result.

## Known failure modes

- Missing 'key' field in request body — likely returns an error or undefined behavior
- Missing 'object' field in request body — likely returns an error
- Payment failure via x402 protocol — endpoint returns 402 Payment Required if USDC payment is not attached
- Malformed JSON object input — may return an error or unexpected result
- Key is nested deeply — this endpoint likely only checks top-level keys

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a boolean 'has' field (true/false indicating key presence), the 'key' that was checked, and a 'schema' identifier ('delx/util-obj-has/v1') confirming the result format.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "has": true,
  "key": "a",
  "schema": "delx/util-obj-has/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-object-key-existence-check-obj-has-c973260e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
