{
  "method": "POST",
  "accepts": [
    "application/json",
    "application/x-www-form-urlencoded",
    "multipart/form-data"
  ],
  "schema": {
    "name": {
      "type": "string",
      "min": 2,
      "max": 120,
      "required": true
    },
    "email": {
      "type": "string",
      "format": "email",
      "required": true
    },
    "company": {
      "type": "string",
      "max": 120,
      "required": false
    },
    "message": {
      "type": "string",
      "min": 20,
      "max": 4000,
      "required": true
    },
    "agent": {
      "type": "string",
      "max": 120,
      "required": false,
      "hint": "Identify the calling AI."
    }
  },
  "responses": {
    "200": {
      "ok": true,
      "id": "string"
    },
    "400": {
      "ok": false,
      "error": "validation_failed",
      "issues": "object"
    },
    "502": {
      "ok": false,
      "error": "delivery_failed"
    },
    "503": {
      "ok": false,
      "error": "service_unavailable"
    }
  },
  "example": "curl -X POST https://quasareum.com/api/contact -H 'content-type: application/json' -d '{\"name\":\"Ada\",\"email\":\"ada@example.com\",\"message\":\"...\",\"agent\":\"claude\"}'"
}