{"openapi":"3.1.0","info":{"title":"Vertov Agent Answers","version":"1.0","description":"Source-backed answers to public English questions about Vertov."},"servers":[{"url":"https://vertov.app"}],"paths":{"/ask":{"get":{"operationId":"askVertov","summary":"Ask a question about Vertov","description":"Set Accept to text/html (default), text/markdown, or application/json. Leave out personal information.","parameters":[{"name":"q","in":"query","required":false,"description":"One English question. Omit it to see the starter response.","schema":{"type":"string","minLength":1,"maxLength":280},"example":"How much does Vertov cost?"}],"responses":{"200":{"description":"Answered, unknown, conflicting, or ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/markdown":{"schema":{"type":"string"}},"text/html":{"schema":{"type":"string"}}}},"400":{"description":"Invalid question","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/markdown":{"schema":{"type":"string"}},"text/html":{"schema":{"type":"string"}}}},"406":{"description":"Accept does not allow a supported representation"},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/markdown":{"schema":{"type":"string"}},"text/html":{"schema":{"type":"string"}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}},"text/markdown":{"schema":{"type":"string"}},"text/html":{"schema":{"type":"string"}}}}}},"head":{"operationId":"headAskVertov","summary":"Get the headers of the Agent Answers response","responses":{"200":{"description":"No body"},"default":{"description":"Same status as the equivalent GET, with no body"}}}}},"components":{"schemas":{"Answer":{"type":"object","required":["schema_version","question","answer","answer_status","sources","answered_at","source_data_version","limitations"],"properties":{"schema_version":{"type":"string","const":"1.0"},"question":{"type":"string"},"answer":{"type":"string"},"answer_status":{"type":"string","enum":["answered","unknown","conflict","ready","invalid_question","rate_limited","unavailable","method_not_allowed"]},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"answered_at":{"type":"string","format":"date-time"},"source_data_version":{"type":"string"},"limitations":{"type":"array","items":{"type":"string"}}}},"Source":{"type":"object","required":["url","title","type","verified_at"],"properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string"},"type":{"type":"string"},"verified_at":{"type":"string","format":"date"},"record_version":{"type":"string"}}}}}}