# Delx Env Key Validate

> Delx Env Key Validate 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-21).

Validates that a string conforms to the environment variable key naming convention (A-Z, 0-9, underscore only)

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/env-key-validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-env-key-validate-eab3912c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xSMBLeKwibnaNDFN8sdJD

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-env-key-validate-eab3912c -d '<json body>'
```

Example prompt: Before I add this to my .env file, can you check whether MY_API_KEY_123 is a valid environment variable key name — only uppercase letters, digits, and underscores allowed?

## When to prefer this

Choose this endpoint when you need a fast, cheap, stateless, deterministic check that a string is a valid environment variable key (A-Z, 0-9, underscore) before using it in configuration, CI/CD pipelines, secret stores, or agent environment injection. Prefer it over regex-in-code when you want a canonical, versioned, machine-readable result you can audit. At $0.001 USDC it is negligible cost for preflight safety.

## Known failure modes

- Empty or missing key field returns an error or invalid result
- Keys with lowercase letters flagged as non-conforming
- Keys containing hyphens, spaces, or special characters return invalid
- Keys starting with a digit may be flagged depending on strictness
- Network or payment failure returns no result

## How this service works

Validate environment variable key shape A-Z0-9 underscore — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already conve…

## Output

A deterministic machine-readable JSON response indicating whether the provided key string conforms to the environment variable naming convention (A-Z, 0-9, underscore, typically not starting with a digit). Includes a pass/fail result and likely details on why a key is invalid.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "key": "X402_PRIVATE_KEY",
  "valid": true,
  "length": 16,
  "schema": "delx/util-env-key-validate/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-env-key-validate-eab3912c/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)
