{"uid":"cap_gqccQziaAJrvtQBcovQ_u","slug":"delx-commerce-url-port-policy-check-d9af0757","name":"Delx Commerce — URL Port Policy 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/url-port-policy-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":8192,"description":"URL supplied to URL Port Policy Check; used only for this bounded calculation and processed in memory without retention."},"allowed_ports":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Allowed Ports supplied to URL Port Policy Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"allowed":true,"effective_port":8443},"schema":"delx/util-url-port-policy-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3c3ea04a21ed18c950af0adf058569fc48c74f8beaa16d9066f239014d36a638","external_calls":0},"operation":"web_reliability:url_port_policy_check"}},"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_03OUgP3TdxwDTk-N9CLVO","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 URL's port is allowed according to a specified list of permitted ports and returns the effective port used","exampleAgentPrompt":"Can you check whether https://myservice.example.com:8443 is using a permitted port, given that my allowed ports are 80, 443, and 8443?","exampleUseCases":[{"title":"Security policy enforcement for agent webhooks","prompt":"Before my agent calls this webhook at https://partner-api.example.com:9090, verify that port 9090 is in my allowed list of 80, 443, and 8080 — I don't want it hitting non-standard ports."},{"title":"URL compliance check in CI pipeline","prompt":"I'm deploying a new service at https://staging.myapp.io:3000 — can you confirm whether port 3000 is allowed given our policy only permits 80, 443, and 3000?"},{"title":"Validate third-party integration endpoint port","prompt":"We just received an integration URL from a vendor: https://data.vendor-corp.com:5432. Can you check if that port is compliant with our whitelist of 80, 443, and 8443?"}],"resultDescription":"Returns a JSON object indicating whether the URL's port is allowed (boolean), the effective port number extracted from the URL, a pass/fail status string, and cryptographic evidence including the SHA-256 hash of the input and a flag confirming no data retention or external calls were made.","failureModes":["URL is malformed or missing a valid host — validation may fail or return an error","Port extracted from URL is not in the allowed_ports array — returns allowed: false and status: fail","allowed_ports array exceeds 256 items — rejected by schema","URL exceeds 8192 character limit — rejected by schema","Empty or null URL submitted — likely returns a validation error","No allowed_ports provided — behavior may default to deny-all or error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, auditable, pay-per-call check that a URL's port conforms to a whitelist policy — especially in agentic or automated workflows where no signup, no session state, and cryptographic evidence of non-retention matter. Prefer it over rolling your own port-parsing logic when you need verifiable, tamper-evident results with an immutable evidence hash. Not suitable for full URL security scanning or firewall rule management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:05.139Z","isFirstParty":false,"canonicalSlug":"delx-commerce-url-port-policy-check-d9af0757"}