{"uid":"cap_XSOoWp-5hBHxdcmt56k7y","slug":"delx-commerce-string-starts-with-check-e5b8020d","name":"Delx Commerce — String Starts-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/starts-with?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."},"prefix":{"type":"string","description":"Input field: prefix."}}},"responseSchema":{"type":"json","example":{"prefix":"https://","result":true,"schema":"delx/util-starts-with/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_4pyby8pVKzXLQXcF2AwdE","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 starts with a specified prefix, returning a boolean result.","exampleAgentPrompt":"Check if the string 'https://example.com/page' starts with 'https://' and tell me if it's true or false.","exampleUseCases":[{"title":"URL scheme validation before fetch","prompt":"Before fetching this link, can you confirm that 'ftp://files.example.com/doc.pdf' starts with 'https://' so I know it's safe to follow?"},{"title":"Order ID prefix verification","prompt":"I have an order ID 'ORD-20240512-9921' — can you check whether it starts with 'ORD-' to confirm it's in the right format?"},{"title":"File path prefix check for routing","prompt":"Does the file path '/var/logs/app/error.log' start with '/var/logs/' so I can route it to the log processor?"}],"resultDescription":"Returns a JSON object containing the prefix that was tested, a boolean 'result' field (true if the text starts with the prefix, false otherwise), and a schema identifier string ('delx/util-starts-with/v1') for verifiable, typed responses.","failureModes":["Missing 'text' or 'prefix' field returns a validation error","Empty string inputs may return unexpected true/false results depending on implementation","Payment failure via x402 protocol blocks the call","Network timeout returns no result","Malformed JSON body causes a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, pay-per-call, no-signup string prefix check — especially in agentic pipelines where auditability (schema-tagged responses) and micro-payment compatibility (USDC via x402) matter. Prefer it over native language-model string checks when you need a deterministic, structured, provable result rather than a probabilistic inference.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:38.929Z","isFirstParty":false,"canonicalSlug":"delx-commerce-string-starts-with-check-e5b8020d"}