{"uid":"cap_cVwllttjnpomv3mJW-vDi","slug":"delx-commerce-ensure-trailing-slash-a508fc20","name":"Delx Commerce — Ensure Trailing Slash","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/ensure-trailing-slash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"path":{"type":"string","description":"Input field: path."}}},"responseSchema":{"type":"json","example":{"path":"/api/v1/","schema":"delx/util-ensure-trailing-slash/v1"}},"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_-EjjMTWb7Mn0f3gK06xFb","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":"Normalizes a URL path by ensuring it ends with a trailing slash.","exampleAgentPrompt":"Make sure this path '/api/v1' always ends with a trailing slash — normalize it for me.","exampleUseCases":[{"title":"Normalizing API route before redirect","prompt":"I have the path '/products/catalog' and I need to make sure it always ends with a slash before I redirect users to it — can you normalize it?"},{"title":"Fixing webhook URL paths","prompt":"My webhook URLs sometimes come in without a trailing slash like '/hooks/payment' — can you ensure they all have a trailing slash appended?"},{"title":"Standardizing CMS slug paths","prompt":"I'm building a sitemap and need every page slug like '/blog/my-post' to end with a trailing slash — please normalize this path for me."}],"resultDescription":"Returns a JSON object containing the normalized path string (guaranteed to end with a trailing slash) and a schema identifier ('delx/util-ensure-trailing-slash/v1') confirming the operation type.","failureModes":["Missing or empty 'path' field in request body — likely returns an error or undefined behavior","Non-string path value — may cause a validation error","Payment failure via x402 — call does not proceed if USDC payment on Base or Solana is not confirmed"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, pay-per-call utility to normalize path strings with a trailing slash — especially useful in agentic pipelines where consistent URL formatting is required without setting up infrastructure. Prefer this over writing custom string logic when operating in environments where verifiable, micropayment-based utility APIs are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.003Z","isFirstParty":false,"canonicalSlug":"delx-commerce-ensure-trailing-slash-a508fc20"}