# Delx Slug Validate

> Delx Slug 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-09-13).

Validates a URL or product slug against a safe lowercase hyphen pattern, returning a deterministic machine-readable JSON result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/slug-validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-slug-validate-d33ffb72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cAcp5FNmj85drTUO6MJyp

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-slug-validate-d33ffb72 -d '<json body>'
```

Example prompt: Can you validate the slug 'my-product-launch-2024' and make sure it's safe and under 50 characters?

## When to prefer this

Choose this endpoint when you need a fast, stateless, deterministic preflight check on a slug's format before storing, publishing, or routing it — particularly when you want machine-readable JSON output and a sub-cent cost per call. Prefer it over custom regex logic when you want a standardized, auditable validation result without side effects.

## Known failure modes

- Slug contains uppercase letters — returns non-conformant with pattern violation detail
- Slug contains underscores or special characters — flagged as invalid
- Slug exceeds max_len — returns length violation
- Empty slug input — returns validation error
- max_len set to zero or negative — may return error or undefined behavior

## How this service works

Validate a URL/product slug against a safe lowercase hyphen pattern — 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 alr…

## Output

Returns deterministic machine-readable JSON indicating whether the provided slug conforms to a safe lowercase hyphen pattern, including conformance status, any pattern violations detected, and whether the slug exceeds the optional max_len constraint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "slug": {
   "type": "string",
   "description": "Input field: slug."
  },
  "max_len": {
   "type": "integer",
   "description": "Input field: max len."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "slug": "agent-micro-utils",
  "valid": true,
  "issues": [],
  "schema": "delx/util-slug-validate/v1",
  "max_len": 64,
  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
 }
}
```

## More

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