{"uid":"cap_abNOECsY2sp74egVDajSF","slug":"delx-host-port-split-c8323291","name":"Delx Host Port Split","description":"Split host and optional port from a host:port or URL authority string — 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 a…","url":"https://api.delx.ai/api/v1/x402/host-port-split","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"host":{"type":"string","description":"Input field: host."}}},"responseSchema":{"type":"json","example":{"ok":true,"host":"api.delx.ai","port":443,"schema":"delx/util-host-port-split/v1","has_port":true}},"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_tpUXeluDPsbRJpH6C01AP","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":"Splits a host:port or URL authority string into its separate host and optional port components, returning deterministic JSON","exampleAgentPrompt":"Split the host and port out of the string 'api.example.com:8443' so I can use them separately in my connection config.","exampleUseCases":[{"title":"Preflight connection string parsing","prompt":"I have the authority string 'db.internal.corp:5432' and I need to separate the hostname from the port before setting up the database connection — can you split them apart for me?"},{"title":"Extract hostname from proxy target","prompt":"My proxy config gives me targets like 'proxy.myservice.io:3128' — split out just the host from the port so I can validate the hostname separately."},{"title":"Parse bare host without port","prompt":"I'm not sure if 'cache.prod.example.com' has a port attached or not — can you run it through the host-port splitter and tell me what comes back?"}],"resultDescription":"A deterministic JSON object containing the separated host component and, if present, the port component extracted from the input host:port or URL authority string. If no port is present, the port field is absent or null.","failureModes":["Malformed input string with no valid host may return an error or empty host field","Input containing full URLs with scheme (e.g. https://) rather than bare authority strings may not parse as expected","Non-string or missing 'host' input field returns a validation error","Ambiguous IPv6 addresses without brackets may parse incorrectly"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic utility to parse a host:port or URL authority string into its components without any external dependencies. It is ideal for agent preflight routines, connection string normalization, and micro-utility pipelines where you need a reliable, cheap ($0.001 USDC) machine-readable result with no side effects or data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:55.041Z","isFirstParty":false}