{"openapi":"3.1.0","info":{"title":"Caldrin Agent Answers","version":"1.0.0","description":"Source-backed answers about public Caldrin information."},"servers":[{"url":"https://caldrin.co"}],"paths":{"/ask":{"get":{"operationId":"askCaldrin","parameters":[{"in":"query","name":"q","required":true,"description":"One public question. Omit only to open the HTML form. Keep personal information and credentials out of the URL.","schema":{"type":"string","minLength":2,"maxLength":300},"example":"How much does managed Search + AI cost?"}],"responses":{"200":{"description":"Answer outcome. UNKNOWN, PARTIALLY_ANSWERED, and CONFLICTING_SOURCES are valid lookup results. HTML without q is the question form.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid query parameter or input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"406":{"description":"Requested formats exclude the available HTML default and offer no supported representation.","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"The request is outside the public answer scope or contains sensitive input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"429":{"description":"Rate limit reached. Wait for Retry-After.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"500":{"description":"Internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"503":{"description":"Answer service unavailable. Wait for Retry-After.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/html":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"Source":{"type":"object","required":["title","canonical_url","source_type","last_verified_at"],"properties":{"title":{"type":"string"},"canonical_url":{"type":"string","format":"uri"},"source_type":{"enum":["company","service","pricing","software","industry","research","case_study","index","contact"]},"last_verified_at":{"type":"string","format":"date"}}},"Answer":{"type":"object","required":["schema_version","question","answer","answer_status","sources","answered_at","source_data_version","limitations"],"properties":{"schema_version":{"const":"1.0"},"question":{"type":["string","null"]},"answer":{"type":"string"},"answer_status":{"enum":["ANSWERED","PARTIALLY_ANSWERED","UNKNOWN","CONFLICTING_SOURCES","UNSUPPORTED_REQUEST"]},"sources":{"type":"array","maxItems":6,"items":{"$ref":"#/components/schemas/Source"}},"answered_at":{"type":["string","null"],"format":"date-time"},"source_data_version":{"type":["string","null"]},"limitations":{"type":"array","items":{"type":"string"}}}}}}}