# Delx Commerce — URL Port Policy Check

> Delx Commerce — URL Port Policy Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Checks whether a URL's port is allowed according to a specified list of permitted ports and returns the effective port used

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-port-policy-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-port-policy-check-d9af0757
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gqccQziaAJrvtQBcovQ_u

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-url-port-policy-check-d9af0757 -d '<json body>'
```

Example prompt: Can you check whether https://myservice.example.com:8443 is using a permitted port, given that my allowed ports are 80, 443, and 8443?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-port-policy-check-d9af0757/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
