{"uid":"cap_vR18VpwhcYiqb11WPSyTA","slug":"delx-ends-with-fdba2b02","name":"Delx Ends With","description":"Check whether text ends with a suffix. Call when you validate file extensions or content-type suffixes. Returns boolean result and suffix for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/ends-with","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_8crGjs91maYsh57YYhkUR","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 and the matched suffix.","exampleAgentPrompt":"Check whether the filename 'report_final.pdf' ends with the suffix '.pdf' and tell me if it's valid.","exampleUseCases":[{"title":"File extension validation before upload","prompt":"Before I process this file, can you check whether 'data_export_2024.csv' ends with '.csv' so I know it's the right format?"},{"title":"MIME type suffix check for API response","prompt":"Does the content-type string 'application/vnd.api+json' end with '+json'? I need to know before I try to parse it."},{"title":"URL trailing slash enforcement","prompt":"Tell me if the URL 'https://example.com/products/' ends with a '/' — I need to enforce consistent trailing slashes in my routing logic."}],"resultDescription":"Returns a boolean indicating whether the text ends with the given suffix, along with the suffix that was tested. The response is a local JSON result with no external network calls or data retention.","failureModes":["Missing 'text' or 'suffix' field returns a validation error","Empty string inputs may return unexpected boolean results","Payment failure (insufficient USDC balance) blocks the call","Very long strings may time out or hit payload limits"],"whenToPreferThis":"Prefer this endpoint when you need a lightweight, stateless string-suffix check with no dependencies, no API keys, and predictable $0.001 flat pricing — ideal for agent pipelines that need to validate file extensions, content-type suffixes, or URL patterns without shipping custom string logic or spinning up a compute environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:08.705Z","isFirstParty":false}