{"openapi":"3.0.3","info":{"title":"Agent Commerce Preflight","version":"0.1.0","description":"MACHINE 0 preflight harness plus MACHINE #1 URL Context Pack commercial-pilot candidate. Not a live commercial Machine #1. PASS/OK is not a market, legal, or investment claim. Base mainnet x402 is prepared and fail-closed/disabled."},"paths":{"/health":{"get":{"summary":"Deterministic health","responses":{"200":{"description":"Health object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/preflight":{"post":{"summary":"Bounded origin preflight","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreflightRequest"}}}},"responses":{"200":{"description":"PASS/WARN/HOLD evidence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreflightResponse"}}}},"400":{"description":"Malformed request syntax"}}}},"/v1/url-context":{"post":{"summary":"URL Context Pack","description":"Deterministic URL Context Pack: fetch one public HTTPS page and return bounded title, description, canonical, heading outline, main text, JSON-LD types, freshness observations, and size/token estimates. No LLM. No login. No crawl. Methodology url-context-0.1.0. Intended later paid price $0.01 USDC exact on Base mainnet; payment is NOT advertised or activated. Bazaar metadata is prepared only; the resource is not claimed as indexed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlContextRequest"}}}},"responses":{"200":{"description":"OK, PARTIAL, or HOLD technical result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlContextResponse"}}}},"400":{"description":"Malformed request syntax"},"402":{"description":"Payment required only if a later activation actually enables the paid route"},"503":{"description":"Pilot disabled or fail-closed HOLD"}},"x-am-bazaar":{"bazaar":{"info":{"method":"POST","path":"/v1/url-context","description":"Deterministic URL Context Pack. No LLM. No login. No crawl. Not claimed as currently indexed.","categories":["utility"],"tags":["url-context","deterministic","https-only"],"input":{"type":"http","method":"POST","schema":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","description":"One absolute public HTTPS URL on port 443."}}},"example":{"url":"https://example.com/"}},"output":{"schema":{"type":"object","required":["status","methodology_version","requested_url","content","limitations"],"additionalProperties":true,"properties":{"status":{"type":"string","enum":["OK","PARTIAL","HOLD"]},"methodology_version":{"type":"string","enum":["url-context-0.1.0"]},"requested_url":{"type":"string"},"final_url":{"type":["string","null"]},"content":{"type":"object"},"limitations":{"type":"array","items":{"type":"string"}}}},"example":{"status":"OK","methodology_version":"url-context-0.1.0","requested_url":"https://example.com/","final_url":"https://example.com/","metadata":{"title":"Example Domain","description":null,"canonical":"https://example.com/"},"content":{"extraction_basis":"body-heuristic","truncated":false}}}}}}}},"/v1/pilot/status":{"get":{"summary":"Commercial pilot kill-switch status","description":"Fail-closed. Does not advertise an active mainnet payment requirement while disabled.","responses":{"200":{"description":"Disabled or ready status object"},"503":{"description":"Pilot HOLD"}}}},"/v1/testnet/paid-proof":{"get":{"summary":"Base Sepolia x402 seller test path","description":"Fail-closed unless testnet seller configuration is present.","responses":{"200":{"description":"Useful deterministic JSON after valid testnet payment"},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"503":{"description":"Testnet seller configuration absent"}}}}},"components":{"schemas":{"Health":{"type":"object","properties":{"service":{"type":"string","enum":["agent-commerce-preflight"]},"machine":{"type":"integer","enum":[0]},"version":{"type":"string"},"methodology_version":{"type":"string","enum":["am-preflight-0.1.0"]},"status":{"type":"string","enum":["ok"]}}},"PreflightRequest":{"type":"object","required":["origin"],"properties":{"origin":{"type":"string","example":"https://example.com"},"paid_get_path":{"type":"string","example":"/optional-paid-route"}}},"PreflightResponse":{"type":"object","required":["status","methodology_version","target","checked_at","checks","payment","limitations"],"properties":{"status":{"type":"string","enum":["PASS","WARN","HOLD"]},"methodology_version":{"type":"string"},"target":{"type":"string"},"checked_at":{"type":"string","format":"date-time"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"payment":{"type":"object"},"limitations":{"type":"array","items":{"type":"string"}}}},"Check":{"type":"object","required":["id","status","evidence","reason"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PASS","WARN","HOLD"]},"evidence":{"type":"object"},"reason":{"type":"string"}}},"PaymentRequired":{"type":"object","properties":{"x402Version":{},"error":{"type":"string"},"accepts":{"type":"array"}}},"UrlContextRequest":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","example":"https://example.com/"}}},"UrlContextResponse":{"type":"object","required":["status","methodology_version","requested_url","content","limitations"],"properties":{"status":{"type":"string","enum":["OK","PARTIAL","HOLD"]},"methodology_version":{"type":"string","enum":["url-context-0.1.0"]},"requested_url":{"type":"string"},"final_url":{"type":"string","nullable":true},"http":{"type":"object"},"metadata":{"type":"object"},"outline":{"type":"array"},"content":{"type":"object"},"structured_data":{"type":"object"},"freshness":{"type":"object"},"size":{"type":"object"},"evidence":{"type":"object"},"limitations":{"type":"array","items":{"type":"string"}}}}}},"x-am-limits":{"maxRedirects":3,"maxOutboundRequests":8,"maxResponseBytes":2097152,"perRequestTimeoutMs":5000,"overallTimeoutMs":20000,"allowedPort":443},"x-am-url-context-limits":{"maxRedirects":3,"maxOutboundRequests":4,"maxResponseBytes":262144,"perRequestTimeoutMs":5000,"overallTimeoutMs":15000,"allowedPort":443,"maxTextChars":8000,"maxHeadings":32,"maxHeadingChars":200,"maxTitleChars":300,"maxDescriptionChars":500,"maxJsonLdScripts":8,"maxJsonLdBytes":32768,"maxDates":8,"minUsefulTextChars":80},"x-am-facilitator":"https://x402.org/facilitator","x-am-network":"eip155:84532","x-am-url-context-price-not-activated":"$0.01","x-am-mainnet-activated":false,"x-am-pilot-enabled":false,"x-am-bazaar-indexed":false,"x-am-bazaar-notes":{"indexed":false,"indexes_after":"successful CDP facilitator settlement, not verify alone","registration":"no separate normal registration step","http_catalog":"https://docs.cdp.coinbase.com/x402/bazaar","external_mcp":"CDP-operated Bazaar MCP; Agent Mercantile does not run an MCP server","docs_checked_at":"2026-08-19"}}