{"uid":"cap_81psIRqbM_VujwQuHpFlC","slug":"delx-url-allowlist-match-f8e10324","name":"Delx URL Allowlist Match","description":"Match a URL against host/path allowlist patterns before egress — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already…","url":"https://api.delx.ai/api/v1/x402/url-allowlist-match","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Input field: url."},"allowlist":{"type":"array","description":"Input field: allowlist."}}},"responseSchema":{"type":"json","example":{"ok":true,"host":"api.delx.ai","path":"/api/v1/x402/hash","schema":"delx/util-url-allowlist-match/v1","scheme":"https","allowed":true,"matched_pattern":"api.delx.ai"}},"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_30AifL5lI7AhDss7i6F_H","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 URL matches any host/path pattern in a caller-supplied allowlist, returning a deterministic JSON result for use in agent preflight egress checks","exampleAgentPrompt":"Before making an outbound call, check whether 'https://api.partner.com/v2/data' matches any of these allowlist patterns: ['api.partner.com/v2/*', 'api.trusted.org/*'].","exampleUseCases":[{"title":"Agent egress preflight check","prompt":"Before my agent fetches data from 'https://feeds.external.io/prices/btc', verify it against my allowlist patterns ['feeds.external.io/*', 'data.mycompany.com/*'] so I know if it's permitted to proceed."},{"title":"Dynamic URL gate in automation pipeline","prompt":"My workflow is about to POST to 'https://hooks.slack.com/services/T00/B00/xyz' — can you check that URL against these allowed destinations: ['hooks.slack.com/*', 'api.github.com/*'] before we send anything out?"},{"title":"Security policy enforcement for LLM tool use","prompt":"I want to make sure my AI agent only calls approved endpoints — run 'https://api.openai.com/v1/chat/completions' through my allowlist of ['api.openai.com/*', 'api.anthropic.com/*'] and tell me if it's permitted."}],"resultDescription":"Returns a deterministic JSON object indicating whether the input URL matched any pattern in the provided allowlist, along with which pattern matched (if any). The response is machine-readable, stateless, and advisory — the caller retains responsibility for final authorization decisions.","failureModes":["Missing or malformed URL input returns a validation error","Empty or null allowlist array returns no-match result","Malformed pattern syntax in allowlist may produce unexpected match behavior","Non-HTTP/HTTPS URL schemes may not match correctly depending on pattern format","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent or automated pipeline needs a fast, stateless, deterministic check of whether a URL is permitted before making an outbound egress call — especially in preflight workflows where no persistent state, web search, or upstream RPC is desired. Prefer this over custom regex logic when you want a paid, auditable, micro-utility call with consistent JSON output. Best suited for single-URL spot checks rather than bulk URL filtering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T01:04:51.730Z","isFirstParty":false}