{
  "openapi": "3.1.0",
  "info": {
    "title": "Quiet Stance Public Inquiry API",
    "version": "1.0.0",
    "description": "Submit a sanitized recurring operational problem for Quiet Stance review. Submission does not imply acceptance, authority, payment terms, or permission for protected-data processing. MCP clients may instead connect to https://quietstance.com/mcp."
  },
  "servers": [
    {
      "url": "https://quietstance.com"
    }
  ],
  "paths": {
    "/api/inquiries": {
      "post": {
        "operationId": "submitRecurringWorkflowInquiry",
        "summary": "Submit an authorized sanitized workflow inquiry",
        "description": "Use only when the user has explicitly authorized submission. Do not send credentials, regulated personal data, protected records, or trade-secret documents.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name",
                  "work_email",
                  "problem",
                  "consequence",
                  "current_approach",
                  "consent"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "work_email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 320
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 240
                  },
                  "problem": {
                    "type": "string",
                    "maxLength": 3000
                  },
                  "consequence": {
                    "type": "string",
                    "maxLength": 2400
                  },
                  "current_approach": {
                    "type": "string",
                    "maxLength": 2400
                  },
                  "authorization": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1800
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "For external agents, use external-agent:<provider-name> when practical."
                  },
                  "consent": {
                    "const": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Inquiry received for review."
          },
          "400": {
            "description": "Invalid or incomplete request."
          },
          "413": {
            "description": "Payload too large."
          },
          "429": {
            "description": "Rate limit exceeded."
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Human and AI agent routing guidance",
    "url": "https://quietstance.com/for-agents"
  }
}
