{"uid":"cap_d4fwxPeVQmQONsPkashH6","slug":"delx-commerce-ensure-suffix-add96397","name":"Delx Commerce — Ensure Suffix","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-suffix?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."},"suffix":{"type":"string","description":"Input field: suffix."}}},"responseSchema":{"type":"json","example":{"text":"report.json","schema":"delx/util-ensure-suffix/v1","suffix":".json","already_present":false}},"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_aWZJjkNRTTVK4j8fqg5kA","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":"Appends a specified suffix to a text string if it is not already present, returning the normalized result","exampleAgentPrompt":"Make sure the filename 'report' ends with '.json' — add the extension if it's missing.","exampleUseCases":[{"title":"Normalize file extension before upload","prompt":"I have a list of filenames from user input and I need to make sure they all end with '.csv' before I upload them — can you ensure each one has the right extension?"},{"title":"Ensure URL path trailing slash","prompt":"The API path I'm building is '/api/v1/users' and it needs to end with a forward slash '/' — can you add it if it's not already there?"},{"title":"Standardize config key suffix","prompt":"I'm generating config keys and they all need to end with '_config'. Can you check my string 'database' and append '_config' if it's missing?"}],"resultDescription":"Returns a JSON object containing the final text with the suffix guaranteed present, the suffix that was checked, and a boolean flag indicating whether the suffix was already present before the call.","failureModes":["Missing required 'text' or 'suffix' fields returns a validation error","Empty string inputs may return unexpected results","Payment failure via x402 protocol blocks the request","Network timeout if the service is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, pay-per-use utility to enforce suffix presence on strings — especially in agentic pipelines where file naming, URL construction, or key normalization requires consistent formatting without setting up custom logic. Ideal when no signup overhead is acceptable and verifiable micro-payments via USDC are preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.329Z","isFirstParty":false,"canonicalSlug":"delx-commerce-ensure-suffix-add96397"}