{
  "openapi": "3.1.0",
  "info": {
    "title": "Thistinct Public API",
    "version": "1.0.0",
    "description": "Public HTTP API for Thistinct. The contact endpoint submits a project inquiry; no bearer token is required. MCP tools live at https://thistinct.dev/mcp.",
    "contact": {
      "name": "Thistinct",
      "url": "https://thistinct.dev/",
      "email": "gonza@thistinct.dev"
    }
  },
  "servers": [
    {
      "url": "https://thistinct.dev"
    }
  ],
  "paths": {
    "/api/contact": {
      "post": {
        "operationId": "submitInquiry",
        "summary": "Submit a project inquiry",
        "description": "Sends an inquiry to the studio. Typical response time is 24 hours. Authentication is not required.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Inquiry"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "examples": ["Email sent successfully"]
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields or invalid JSON"
          },
          "500": {
            "description": "Failed to deliver the inquiry"
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service health",
        "responses": {
          "200": {
            "description": "The site and inquiry API are up",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Inquiry": {
        "type": "object",
        "additionalProperties": false,
        "required": ["firstName", "lastName", "email", "message"],
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1
          },
          "lastName": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "company": {
            "type": "string",
            "description": "Optional company or product name"
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "description": "Project brief"
          }
        }
      },
      "Health": {
        "type": "object",
        "required": ["status"],
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "service": {
            "type": "string"
          }
        }
      }
    }
  }
}
