{"uid":"cap_hsIb_a5cDIJ61glV_erZf","slug":"delx-commerce-string-ends-with-check-2a3c7b07","name":"Delx Commerce — String Ends-With Check","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/ends-with?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":{"result":true,"schema":"delx/util-ends-with/v1","suffix":".json"}},"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_zPs_HjhbSmvYeHcmfebJX","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":"Checks whether a given text string ends with a specified suffix, returning a boolean result.","exampleAgentPrompt":"Can you check whether the string 'data/output/results.json' ends with '.json'?","exampleUseCases":[{"title":"File extension validation in pipeline","prompt":"Check if the filename 'report_final.csv' ends with '.csv' before I try to parse it as a spreadsheet."},{"title":"URL format verification for routing","prompt":"Does the URL 'https://api.example.com/data/feed.xml' end with '.xml'? I need to know before deciding how to handle it."},{"title":"Identifier suffix check for naming conventions","prompt":"I have the string 'user_profile_v2_archived' — can you tell me if it ends with '_archived'?"}],"resultDescription":"Returns a JSON object with a boolean 'result' field (true/false indicating whether the text ends with the given suffix), the schema identifier 'delx/util-ends-with/v1', and the suffix that was tested.","failureModes":["Missing 'text' or 'suffix' field returns a validation error","Empty string inputs may produce unexpected boolean results","Payment failure via x402 prevents the call from completing","Network timeout on the Base/Solana payment settlement"],"whenToPreferThis":"Use this endpoint when an AI agent needs a deterministic, pay-per-result string suffix check without managing API keys or subscriptions — ideal for lightweight utility checks in automated pipelines where cost predictability (exactly $0.001 USDC per call) and verifiable delivery matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.930Z","isFirstParty":false,"canonicalSlug":"delx-commerce-string-ends-with-check-2a3c7b07"}