{"openapi":"3.1.0","info":{"title":"Christoffer Maintz contact API","version":"1.0.0","description":"Send Christoffer Maintz a freelance or consulting inquiry. Human docs: https://maintz.dev/developers/","contact":{"name":"Christoffer Maintz","email":"christoffer@maintz.dev","url":"https://maintz.dev/contact/"}},"servers":[{"url":"https://maintz.dev"}],"paths":{"/api/contact":{"post":{"operationId":"sendInquiry","summary":"Send Christoffer Maintz a message","description":"Delivers a freelance or consulting inquiry by email. Send `Accept: application/json` for a JSON result; without it the endpoint answers with a 303 redirect back to /contact. Rate limited to 3 messages a minute per IP.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["name","email","message"],"properties":{"name":{"type":"string","maxLength":120},"email":{"type":"string","format":"email","maxLength":200},"company":{"type":"string","maxLength":120},"topic":{"type":"string","enum":["freelance","consulting","other"],"default":"other"},"budget":{"type":"string","maxLength":80},"message":{"type":"string","minLength":10,"maxLength":5000},"website":{"type":"string","maxLength":0,"description":"Honeypot. Leave empty; a filled value is silently dropped."},"cf-turnstile-response":{"type":"string","description":"Cloudflare Turnstile token. Required when the form shows a captcha."}}}},"multipart/form-data":{"schema":{"type":"object","required":["name","email","message"],"properties":{"name":{"type":"string","maxLength":120},"email":{"type":"string","format":"email","maxLength":200},"company":{"type":"string","maxLength":120},"topic":{"type":"string","enum":["freelance","consulting","other"],"default":"other"},"budget":{"type":"string","maxLength":80},"message":{"type":"string","minLength":10,"maxLength":5000},"website":{"type":"string","maxLength":0,"description":"Honeypot. Leave empty; a filled value is silently dropped."},"cf-turnstile-response":{"type":"string","description":"Cloudflare Turnstile token. Required when the form shows a captcha."}}}}}},"responses":{"200":{"description":"Sent.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}},"303":{"description":"Redirect to /contact with ?sent or ?error (when the request did not ask for JSON)."},"400":{"description":"Malformed body, or the field named in `error` is invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}},"403":{"description":"Captcha check failed (`captcha`).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}},"429":{"description":"Too many messages from this IP (`rate_limited`).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}},"502":{"description":"The email provider rejected the message (`send_failed`).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}},"503":{"description":"Email delivery is not configured (`not_configured`).","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","enum":["bad_request","name","email","message","captcha","rate_limited","send_failed","not_configured"]}}}}}}}}},"/api/health":{"get":{"operationId":"health","summary":"Contact API health","responses":{"200":{"description":"`pass` when email delivery is configured, `warn` when it is not.","content":{"application/health+json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pass","warn"]}}}}}}}}}}}