# Delx Commerce Slug Validate

> Delx Commerce Slug Validate 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 string conforms to slug format rules (lowercase alphanumeric with hyphens), returning validity status and any issues found

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/slug-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-slug-validate-2d23f0dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4UF6bdF6jf2kDkL6d3nkS

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

Example prompt: Can you check if 'my-new-blog-post-2024' is a valid slug and make sure it's no longer than 64 characters?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC), pay-per-call slug validation with no signup or API key required — especially in agent pipelines that dynamically generate slugs for URLs, resource identifiers, or CMS paths and need to verify conformance before committing. Prefer it over rolling your own regex when you want verifiable, schema-documented validation with a consistent pattern definition.

## Known failure modes

- Missing or empty slug field returns validation error
- Non-string slug value may cause type error
- max_len set to zero or negative may produce unexpected results
- Slug containing only hyphens or starting/ending with a hyphen will return valid=false with issues listed
- Network or payment failure returns HTTP 402 if USDC payment is not properly attached

## 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 with: ok (boolean indicating request success), slug (the input slug echoed back), valid (boolean indicating if the slug passes all rules), issues (array of any formatting problems found), schema (schema identifier used for validation), max_len (the maximum length applied), and pattern (the regex pattern the slug is validated against, e.g. ^[a-z0-9]+(?:-[a-z0-9]+)*$).

## 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-commerce-slug-validate-2d23f0dc/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)
