{"uid":"cap_4UF6bdF6jf2kDkL6d3nkS","slug":"delx-commerce-slug-validate-2d23f0dc","name":"Delx Commerce Slug Validate","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/slug-validate?utm_source=zero.xyz","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_KEubv-3bQOrSC-YCRvmbO","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 whether a string conforms to slug format rules (lowercase alphanumeric with hyphens), returning validity status and any issues found","exampleAgentPrompt":"Can you check if 'my-new-blog-post-2024' is a valid slug and make sure it's no longer than 64 characters?","exampleUseCases":[{"title":"Pre-publish slug check for CMS","prompt":"Before I publish this article, check if 'intro-to-machine-learning' is a valid slug and flag any formatting issues."},{"title":"Agent-generated identifier validation","prompt":"I just created the slug 'MyProduct_v2' programmatically — can you validate it against standard slug rules with a max length of 50 characters and tell me what's wrong with it?"},{"title":"Batch pipeline guard for URL creation","prompt":"We're about to create a new product page with the slug 'top-rated-coffee-beans-2024' — validate it for me and confirm it fits within 64 characters before we proceed."}],"resultDescription":"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]+)*$).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:42.742Z","isFirstParty":false,"canonicalSlug":"delx-commerce-slug-validate-2d23f0dc"}