# JSON Enum Fields Check

> JSON Enum Fields Check is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Validates selected fields in a JSON object against caller-provided enum value sets, returning counts, normalized values, and a versioned deterministic result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-enum-fields-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-enum-fields-check-5445f28e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vK7I6tb9BTNZF5_wE81bE

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 json-enum-fields-check-5445f28e -d '<json body>'
```

Example prompt: Before I send this order payload downstream, check that the 'status' and 'priority' fields only contain allowed values — status can be 'pending', 'active', or 'closed', and priority can be 'low', 'medium', or 'high'. Here's the object: {"status": "actve", "priority": "urgent", "id": 42}.

## When to prefer this

Choose this endpoint when you need a lightweight, deterministic, in-memory enum validation of JSON object fields against caller-supplied allowed value sets — especially before handing structured data to a downstream tool with a strict contract. It is ideal when you do not need an external schema registry or third-party validator, and you want a versioned, auditable result with normalized values and counts for a flat cost of $0.001 per call.

## Known failure modes

- Missing or malformed 'object' input returns validation error
- Missing or malformed 'enums' map returns validation error
- Exceeding 128 properties on either input object or enums map may be rejected
- Fields in object not present in enums map are flagged or skipped depending on contract
- Payment not provided or insufficient USDC results in HTTP 402 rejection

## How this service works

JSON Enum Fields Check: JSON Enum Fields Check checks selected fields against caller-provided enum values from bounded caller-supplied values without an external provider. Call JSON Enum Fields Check before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Enum Fields Check as versioned deterministic JSON. Price: $0.001 USD…

## Output

Returns a versioned deterministic JSON object containing validation findings per field, counts of matching and non-matching values, normalized values found, and a versioned result contract — all processed in memory without data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "enums": {
   "type": "object",
   "description": "Enums supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "invalid_fields": []
  },
  "schema": "delx/util-json-enum-fields-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "754b21ec3bf827fca52ae9e586537f3d14e39c664553bd2f27e0638c10c32ba6",
   "external_calls": 0
  },
  "operation": "data_batch:json_enum_fields_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-enum-fields-check-5445f28e/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)
