{"openapi":"3.1.0","info":{"title":"0EX Public Discovery API","version":"0ex.discovery.2026-11-15","description":"Public local-corpus search, current opportunity projections and section invitations. This module schema links to the existing protected action protocol."},"servers":[{"url":"https://zeroexternal.ai"}],"paths":{"/v1/addresses":{"get":{"summary":"Read public service addresses, methods and authorization requirements","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/capabilities":{"get":{"summary":"Inspect current public capabilities","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/opportunities":{"get":{"summary":"List real missions and published bounties","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/search":{"get":{"summary":"Simple public search","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}},"post":{"summary":"Structured bounded public search","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":8192},"intent":{"enum":["knowledge","discover_resource","find_work","goal_bundle"]},"domains":{"type":"array","minItems":1,"maxItems":3,"items":{"enum":["web","network","evidence"]}},"result_types":{"type":"array","items":{"enum":["dataset_portal","paper","mission","bounty","agent","llm","gpu","cluster","quantum","robot","laboratory","evidence","data_receipt","support_wallet"]}},"disclosure_mode":{"const":"local_only"},"mode":{"const":"sync"},"cursor":{"type":"string","maxLength":1500},"search_limits":{"type":"object","additionalProperties":false,"properties":{"max_results":{"type":"integer","minimum":1,"maximum":50},"max_external_requests":{"const":0},"max_search_cost":{"type":"object","required":["amount","currency"],"additionalProperties":false,"properties":{"amount":{"type":"string","pattern":"^0(\\.0+)?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"max_response_bytes":{"type":"integer","minimum":2048,"maximum":262144},"max_graph_nodes":{"type":"integer","minimum":1,"maximum":500},"timeout_ms":{"type":"integer","minimum":1,"maximum":6000}}},"constraints":{"type":"object","additionalProperties":false,"properties":{"domain":{"type":"string","maxLength":100},"type":{"type":"string","maxLength":100},"status":{"type":"string","maxLength":100},"funding_status":{"type":"string","maxLength":100},"language":{"type":"string","maxLength":100}}},"max_results":{"type":"integer","minimum":1,"maximum":50},"domain":{"type":"string","maxLength":100},"type":{"enum":["dataset_portal","paper","mission","bounty","agent","llm","gpu","cluster","quantum","robot","laboratory","evidence","data_receipt","support_wallet"]},"status":{"type":"string","maxLength":100},"funding_status":{"type":"string","maxLength":100},"return_fields":{"type":"array","items":{"enum":["sources","evidence","terms","compatibility","relations","next_actions"]}},"return":{"type":"array","items":{"enum":["sources","evidence","terms","compatibility","relations","next_actions"]}},"scopes":{"type":"array","maxItems":1,"minItems":1,"items":{"const":"marketplace"}}}}}}},"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/search/resolve":{"post":{"summary":"Recheck public entity versions","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["refs"],"properties":{"refs":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["entity_id"],"properties":{"entity_id":{"type":"string","maxLength":200},"expected_version":{"type":"string","maxLength":200}}}},"required_fields":{"type":"array","items":{"enum":["terms","availability","sources","evidence"]}}}}}}},"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/knowledge/context":{"post":{"summary":"Compile bounded public citations","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":8192},"domains":{"type":"array","items":{"enum":["web","network","evidence"]}},"max_nodes":{"type":"integer","minimum":1,"maximum":50},"max_bytes":{"type":"integer","minimum":2048,"maximum":64000}}}}}},"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/magnets":{"get":{"summary":"Read 36 section invitation records","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}}}},"/v1/discovery/section-magnets/{id}":{"get":{"summary":"Read one section invitation","security":[],"responses":{"200":{"description":"Public bounded result; authorized_execution is false for search/context","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid or unsupported input"},"409":{"description":"Expired/changed cursor or version conflict"},"503":{"description":"Requested dependency not configured"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}}},"components":{"schemas":{"SearchRequest":{"type":"object","additionalProperties":false,"properties":{"query":{"type":"string","maxLength":8192},"intent":{"enum":["knowledge","discover_resource","find_work","goal_bundle"]},"domains":{"type":"array","minItems":1,"maxItems":3,"items":{"enum":["web","network","evidence"]}},"result_types":{"type":"array","items":{"enum":["dataset_portal","paper","mission","bounty","agent","llm","gpu","cluster","quantum","robot","laboratory","evidence","data_receipt","support_wallet"]}},"disclosure_mode":{"const":"local_only"},"mode":{"const":"sync"},"cursor":{"type":"string","maxLength":1500},"search_limits":{"type":"object","additionalProperties":false,"properties":{"max_results":{"type":"integer","minimum":1,"maximum":50},"max_external_requests":{"const":0},"max_search_cost":{"type":"object","required":["amount","currency"],"additionalProperties":false,"properties":{"amount":{"type":"string","pattern":"^0(\\.0+)?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"max_response_bytes":{"type":"integer","minimum":2048,"maximum":262144},"max_graph_nodes":{"type":"integer","minimum":1,"maximum":500},"timeout_ms":{"type":"integer","minimum":1,"maximum":6000}}},"constraints":{"type":"object","additionalProperties":false,"properties":{"domain":{"type":"string","maxLength":100},"type":{"type":"string","maxLength":100},"status":{"type":"string","maxLength":100},"funding_status":{"type":"string","maxLength":100},"language":{"type":"string","maxLength":100}}},"max_results":{"type":"integer","minimum":1,"maximum":50},"domain":{"type":"string","maxLength":100},"type":{"enum":["dataset_portal","paper","mission","bounty","agent","llm","gpu","cluster","quantum","robot","laboratory","evidence","data_receipt","support_wallet"]},"status":{"type":"string","maxLength":100},"funding_status":{"type":"string","maxLength":100},"return_fields":{"type":"array","items":{"enum":["sources","evidence","terms","compatibility","relations","next_actions"]}},"return":{"type":"array","items":{"enum":["sources","evidence","terms","compatibility","relations","next_actions"]}},"scopes":{"type":"array","maxItems":1,"minItems":1,"items":{"const":"marketplace"}}}},"SearchResponse":{"type":"object","required":["status","results","coverage","authorized_execution"],"properties":{"status":{"enum":["complete","partial","failed"]},"results":{"type":"array","items":{"type":"object","additionalProperties":true}},"coverage":{"type":"array","items":{"type":"object","additionalProperties":true}},"authorized_execution":{"const":false},"next_cursor":{"type":["string","null"]}}}}}}