# Delx JSON Type Name

> Delx JSON Type Name 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-16).

Returns the JSON type name (e.g. 'string', 'number', 'array', 'object', 'boolean', 'null') for a given runtime value.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-type-name
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-json-type-name-3c103fbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rG3m84FxbgxpZtsIzH7lK

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-json-type-name-3c103fbe -d '<json body>'
```

Example prompt: What JSON type is this value — [1, 2, 3]? I need to know if it's an array, object, or something else so I can branch my logic correctly.

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, stateless utility to classify a JSON value's type at runtime without shipping a local type-checking function or adding a dependency. Ideal for conditional branching, input validation preflight checks, or debugging dynamic payloads in pipelines where the type is ambiguous. At $0.001 USDC per call, it is cost-effective for occasional checks; for high-volume type classification, a local implementation may be preferred.

## Known failure modes

- Missing or malformed 'value' field in the request body returns an error
- Payment failure or insufficient USDC balance returns a 402 response
- Malformed JSON body returns a parsing error
- Unexpected server error returns a 5xx response

## How this service works

JSON type name for a value. Call when you branch agent logic by runtime JSON type. Returns type string 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

A type name string indicating the JSON type of the submitted value — one of 'string', 'number', 'integer', 'boolean', 'array', 'object', or 'null'. No additional data is retained or returned; the result is advisory and local only.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "array",
  "schema": "delx/util-json-type-name/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-json-type-name-3c103fbe/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)
