{"openapi":"3.1.0","info":{"title":"TwoChairsTech Inquiry API","version":"1.0.0"},"paths":{"/v1/inquiries":{"post":{"summary":"Create Inquiry","operationId":"create_inquiry_v1_inquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InquiryInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InquiryResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InquiryInput":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"company":{"type":"string","maxLength":160,"minLength":1,"title":"Company"},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":80,"title":"Phone","default":""},"region":{"type":"string","maxLength":120,"minLength":1,"title":"Region"},"projectType":{"type":"string","maxLength":100,"minLength":1,"title":"Projecttype"},"details":{"type":"string","maxLength":5000,"title":"Details"},"consent":{"type":"boolean","title":"Consent"},"language":{"type":"string","enum":["zh","en"],"title":"Language"},"source":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Source"},"referrer":{"type":"string","maxLength":1000,"title":"Referrer","default":""},"utm_source":{"type":"string","maxLength":200,"title":"Utm Source","default":""},"utm_medium":{"type":"string","maxLength":200,"title":"Utm Medium","default":""},"utm_campaign":{"type":"string","maxLength":200,"title":"Utm Campaign","default":""},"utm_term":{"type":"string","maxLength":200,"title":"Utm Term","default":""},"utm_content":{"type":"string","maxLength":200,"title":"Utm Content","default":""},"website":{"type":"string","maxLength":200,"title":"Website","description":"Honeypot; must remain empty","default":""}},"type":"object","required":["name","company","region","projectType","details","consent","language","source"],"title":"InquiryInput"},"InquiryResult":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"inquiry_id":{"type":"string","title":"Inquiry Id"},"notification_delivered":{"type":"boolean","title":"Notification Delivered"}},"type":"object","required":["inquiry_id","notification_delivered"],"title":"InquiryResult"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}