{"uid":"cap_cAcp5FNmj85drTUO6MJyp","slug":"delx-slug-validate-d33ffb72","name":"Delx Slug Validate","description":"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…","url":"https://api.delx.ai/api/v1/x402/slug-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"slug":{"type":"string","description":"Input field: slug."},"max_len":{"type":"integer","description":"Input field: max len."}}},"responseSchema":{"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]+)*$"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ADYxLPcCLMC8NdOJI0Ltg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a URL or product slug against a safe lowercase hyphen pattern, returning a deterministic machine-readable JSON result.","exampleAgentPrompt":"Can you validate the slug 'my-product-launch-2024' and make sure it's safe and under 50 characters?","exampleUseCases":[{"title":"Preflight slug check before publishing","prompt":"Before I publish this new blog post, can you validate the slug 'best-coffee-shops-nyc' and confirm it's under 60 characters and properly formatted?"},{"title":"E-commerce product URL validation","prompt":"I'm about to create a new product page — can you check whether 'wireless-noise-cancelling-headphones' is a valid slug?"},{"title":"API route segment preflight","prompt":"We're generating route slugs programmatically — validate 'user_profile_v2' and tell me if it passes the lowercase hyphen pattern check, with a max length of 40."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:56:11.900Z","isFirstParty":false}