# Delx Commerce — Environment Key Validator

> Delx Commerce — Environment Key Validator 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).

Validates whether a given environment key string is well-formed and meets expected format requirements

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/env-key-validate?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-environment-key-validator-2f8fc993
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_snpWuvR5UrQQVNzfmXxm7

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-environment-key-validator-2f8fc993 -d '<json body>'
```

Example prompt: Can you check whether this key string is valid and properly formatted — it's supposed to be my X402_PRIVATE_KEY: 'abc123xyz789qrst'?

## When to prefer this

Use this endpoint when an AI agent or automation workflow needs to programmatically verify that an environment key string is correctly formatted before injecting it into a configuration or downstream API call. It is particularly suited for agent pipelines that rotate or receive keys dynamically and need lightweight, cheap ($0.001 USDC) validation without standing up their own key-format logic.

## Known failure modes

- Empty or missing key field returns validation failure
- Malformed or too-short key string returns valid=false
- Network or payment failure (x402 USDC micropayment not processed) blocks the call
- Invalid JSON body returns 400-level error

## 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 indicating the key name (e.g. 'X402_PRIVATE_KEY'), whether the key is valid (boolean), its character length, and the schema identifier ('delx/util-env-key-validate/v1') that was used to validate it.

## 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-commerce-environment-key-validator-2f8fc993/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)
