{"openapi":"3.1.0","info":{"title":"zeb.co Public Agent API","version":"1.0.0","description":"Public, unauthenticated endpoints for AI agents: natural-language search over zeb's content, Markdown page retrieval, and inquiry submission. zeb is a delivery partner, not a metered API product.","contact":{"name":"zeb","url":"https://zeb.co/contact/","email":"sales@zeb.co"}},"servers":[{"url":"https://zeb.co"}],"paths":{"/ask/":{"post":{"operationId":"askQuestion","summary":"Ask a natural-language question about zeb","description":"Keyword retrieval over zeb's own indexed content (NLWeb-style). Returns ranked pages. Send Accept: text/event-stream for SSE streaming.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Natural-language query."}}}}}},"responses":{"200":{"description":"Ranked results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"}}}},"400":{"description":"Missing/invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"askQuestionGet","summary":"Ask via query string","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ranked results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"}}}},"400":{"description":"Missing/invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/md/":{"get":{"operationId":"getPageMarkdown","summary":"Fetch a page as Markdown","description":"Returns text/markdown for a site path. Any URL also serves Markdown via Accept: text/markdown or a .md suffix.","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string"},"description":"Site path, e.g. /about/"}],"responses":{"200":{"description":"Markdown body","content":{"text/markdown":{"schema":{"type":"string"}}}},"404":{"description":"Unknown path (Markdown recovery body)","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/api/contact/":{"post":{"operationId":"submitInquiry","summary":"Submit a contact inquiry","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"formId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string","format":"email","description":"Business email required."},"company":{"type":"string"},"phone":{"type":"string"},"topic":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"200":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Verification failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"AskResponse":{"type":"object","properties":{"_meta":{"type":"object","properties":{"response_type":{"type":"string"},"version":{"type":"string"},"query":{"type":"string"}}},"results":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"url":{"type":"string","format":"uri"},"name":{"type":"string"},"description":{"type":"string"},"score":{"type":"number"}}}}}},"Error":{"type":"object","required":["ok","code","error"],"properties":{"ok":{"type":"boolean","enum":[false]},"code":{"type":"string","description":"Stable machine-readable error code."},"error":{"type":"string","description":"Human-readable message."}}}}}}