{"uid":"cap_UmXicaHd38YQr180RmL91","slug":"delx-url-origin-38f3569a","name":"Delx URL Origin","description":"Extract scheme://host[:port] origin from a URL without network access — 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/url-origin","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Input field: url."}}},"responseSchema":{"type":"json","example":{"ok":true,"host":"api.delx.ai","port":443,"origin":"https://api.delx.ai:443","schema":"delx/util-url-origin/v1","scheme":"https"}},"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_Y0rFWqydCZh_b3Mq9r0OH","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":"Extracts the scheme://host[:port] origin component from a given URL string without any network access","exampleAgentPrompt":"What's the origin (scheme, host, and port if present) of this URL: https://api.example.com:8080/v1/resource?token=abc123 — just pull it out locally without hitting the network.","exampleUseCases":[{"title":"CORS policy preflight check","prompt":"Before I make this cross-origin request, extract the origin from https://payments.myapp.io/checkout/session?id=xyz so I can verify it against our allowed-origins list."},{"title":"Security audit URL normalization","prompt":"I have this URL — https://internal.corp.net:9443/admin/panel — can you pull out just the scheme://host:port origin so I can compare it against our allowed-origins allowlist?"},{"title":"Grouping requests by origin","prompt":"I'm processing a batch of webhook logs and need to group them by origin — can you extract the origin from https://hooks.stripe.com/webhooks/acct_123/evt_456 so I can bucket it correctly?"}],"resultDescription":"A deterministic JSON object containing the parsed origin components of the input URL, including scheme, host, optional port, and the assembled origin string (e.g. {\"origin\": \"https://api.example.com:8080\", \"scheme\": \"https\", \"host\": \"api.example.com\", \"port\": \"8080\"}). No network calls are made; result is computed purely from the input string.","failureModes":["Malformed or non-parseable URL input returns an error response","Missing or empty url field returns a validation error","URLs without explicit ports return no port field or null port","Relative URLs (no scheme/host) may fail or return partial results"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, zero-network-call origin extraction from a URL string — ideal for agent preflight checks, security policy enforcement, or grouping/normalization tasks where you only need the scheme+host+port tuple. Prefer it over regex-based ad hoc parsing when you need consistent, machine-readable JSON output. It is not appropriate when you need DNS resolution, reachability checks, or full URL decomposition (path, query params).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:16.549Z","isFirstParty":false}