{"openapi":"3.1.0","info":{"title":"Chateleon AI Agent API","description":"User-engaging avatar/mascot integration for websites","version":"1.0.0"},"servers":[{"url":"https://site-factsheet-api.test-vengatesh.workers.dev/v1/a/chateleon-com","description":"Hosted AI Agent Base"}],"paths":{"/ask":{"get":{"operationId":"askQuestionGet","summary":"Ask a question via GET","description":"Ask the agent a question using query parameter ?q=","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Question for the business agent"}],"responses":{"200":{"description":"Answer from agent","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"query":{"type":"string"},"answer":{"type":"string"},"model":{"type":"string"}},"required":["ok","answer"]}}}}}},"post":{"operationId":"askQuestionPost","summary":"Ask a question via POST","description":"Ask the agent a question using JSON body { message: '...' }","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Question or message for the agent"}}}}}},"responses":{"200":{"description":"Answer from agent","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"query":{"type":"string"},"answer":{"type":"string"},"model":{"type":"string"}},"required":["ok","answer"]}}}}}}},"/a2a":{"get":{"operationId":"getA2AStatus","summary":"A2A Endpoint Health & Status","description":"Inspect A2A endpoint capabilities or test with ?q=","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Optional test query"}],"responses":{"200":{"description":"A2A status or query answer","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"service":{"type":"string"},"protocol":{"type":"string"},"answer":{"type":"string"}},"additionalProperties":true}}}}}},"post":{"operationId":"executeA2A","summary":"A2A Protocol JSON-RPC 2.0","description":"Standard A2A SendMessage or skill execution","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"method":{"type":"string"},"id":{"type":"string"},"params":{"type":"object","additionalProperties":true}},"required":["jsonrpc","method","id"]}}}},"responses":{"200":{"description":"JSON-RPC result","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"string"},"result":{"type":"object","additionalProperties":true},"error":{"type":"object","additionalProperties":true}},"required":["jsonrpc"]}}}}}}},"/agent.json":{"get":{"operationId":"getProfile","summary":"Get Verified Business Profile","description":"Source-linked factsheet data including hours, products, services, contact, and evidence","responses":{"200":{"description":"Full profile","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"}},"additionalProperties":true}}}}}}},"/leads":{"get":{"operationId":"submitLeadGet","summary":"Submit Lead Inquiry via GET / WebFetch Bridge","description":"Submit customer inquiry directly via URL query parameters for browsing AI agents with GET-only tools (%WebFetch). Pass ?name=...&email=...&message=...&consent=true. If parameters are omitted, returns usage guide.","parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string"},"description":"User's full name"},{"name":"email","in":"query","required":false,"schema":{"type":"string"},"description":"User's email address"},{"name":"message","in":"query","required":false,"schema":{"type":"string"},"description":"Inquiry message or request details"},{"name":"consent","in":"query","required":false,"schema":{"type":"string","enum":["true","1"]},"description":"Explicit user consent to be contacted (must be 'true' or '1')"},{"name":"phone","in":"query","required":false,"schema":{"type":"string"},"description":"Optional phone number"},{"name":"service","in":"query","required":false,"schema":{"type":"string"},"description":"Requested service"},{"name":"location","in":"query","required":false,"schema":{"type":"string"},"description":"User location"}],"responses":{"200":{"description":"Lead usage guide","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"string"},"usage":{"type":"string"},"requiredParams":{"type":"array","items":{"type":"string"}}}}}}},"201":{"description":"Lead accepted","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"referenceId":{"type":"string"},"message":{"type":"string"}},"required":["accepted","referenceId"]}}}}}},"post":{"operationId":"submitLead","summary":"Submit Lead Inquiry","description":"Send customer inquiry with explicit contact consent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","email","message","consent"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"message":{"type":"string"},"service":{"type":"string"},"location":{"type":"string"},"consent":{"type":"boolean","enum":[true]}}}}}},"responses":{"201":{"description":"Lead accepted","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"referenceId":{"type":"string"},"message":{"type":"string"}},"required":["accepted","referenceId"]}}}}}}}},"components":{"schemas":{},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API_KEY","description":"Optional agent API key (Authorization: Bearer <key>)"}}}}