{"uid":"cap_KmA80qQkX-0rg0zKVbled","slug":"delx-commerce-origin-header-normalize-78b1ba98","name":"Delx Commerce — Origin Header Normalize","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/origin-header-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"origin":{"type":"string","maxLength":8192,"description":"Origin supplied to Origin Header Normalize; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"host":"example.com","origin":"https://example.com","scheme":"https","effective_port":443},"schema":"delx/util-origin-header-normalize/v1","status":"pass","evidence":{"retained":false,"input_sha256":"07b2bd8501ded3c8a0fda45530946ed82acb0010a7632e08f86773e43703f622","external_calls":0},"operation":"web_reliability:origin_header_normalize"}},"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_G_M9ddGFFucvnSsbITfYN","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":"Parses and normalizes an HTTP Origin header value into structured components (host, scheme, effective port), verifiably and without data retention.","exampleAgentPrompt":"Parse and normalize this origin header for me — 'https://app.example.com' — and tell me the host, scheme, and effective port.","exampleUseCases":[{"title":"CORS policy validation for agent","prompt":"I need to validate the origin 'https://dashboard.myapp.io' — can you normalize it and tell me the exact host, scheme, and port so I can check it against my CORS allowlist?"},{"title":"Debugging mismatched origin headers","prompt":"We're seeing weird CORS errors and I think the origin header has inconsistent formatting. Can you normalize 'http://api.internal:8080' and give me the canonical host and effective port?"},{"title":"Security audit of incoming request origins","prompt":"For our security review, normalize the origin 'https://partner.thirdparty.com' and give me its parsed components — host, scheme, and effective port — along with proof it wasn't stored."}],"resultDescription":"A JSON object containing the parsed origin components: host (e.g. 'example.com'), scheme (e.g. 'https'), effective port (e.g. 443), and the normalized origin string. Also includes evidence metadata: a SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0).","failureModes":["Invalid or malformed origin string returns an error or failed status","Origin string exceeding 8192 characters is rejected","Non-URL strings (e.g. bare hostnames without scheme) may produce incomplete parsing results","Payment failure via x402 protocol causes the request to be rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, pay-per-call, no-signup way to normalize and parse HTTP Origin header strings into structured components — particularly in agent workflows that require cryptographic evidence of non-retention and zero external calls. Prefer it over rolling your own URL parsing when auditability and proof of processing are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.974Z","isFirstParty":false,"canonicalSlug":"delx-commerce-origin-header-normalize-78b1ba98"}