{
  "openapi": "3.1.0",
  "info": {
    "title": "Notifications API",
    "description": "Shared outbound notification service — owns email templates, branding, i18n, and SES sending for all Puglieseweb products. Public HTTP surface is the contact form; other notifications are triggered internally via EventBridge.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.puglieseweb.com/notifications/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/contact": {
      "post": {
        "tags": [
          "Contact"
        ],
        "summary": "Submit a contact form",
        "description": "Sends an email notification via SES and, for Product Feedback submissions, emits a `feedback.submitted` event for downstream consumers.",
        "operationId": "submit_contact_form_contact_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContactRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Name",
            "examples": [
              "John Doe"
            ]
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "pattern": "^[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}$",
            "title": "Email",
            "examples": [
              "john@example.com"
            ]
          },
          "product": {
            "type": "string",
            "maxLength": 50,
            "minLength": 1,
            "title": "Product",
            "description": "Product the submission relates to — drives email branding",
            "examples": [
              "noteble"
            ]
          },
          "message": {
            "type": "string",
            "maxLength": 10000,
            "title": "Message",
            "default": ""
          },
          "company": {
            "type": "string",
            "maxLength": 200,
            "title": "Company",
            "default": "Not specified"
          },
          "requestType": {
            "type": "string",
            "maxLength": 50,
            "title": "Requesttype",
            "description": "Contact form category",
            "default": "Contact",
            "examples": [
              "Demo Request"
            ]
          },
          "feedbackType": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Feedbacktype"
          },
          "userId": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Userid"
          }
        },
        "type": "object",
        "required": [
          "name",
          "email",
          "product"
        ],
        "title": "ContactRequest",
        "description": "Inbound contact form submission."
      },
      "ContactResponse": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "examples": [
              "Request submitted successfully"
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ContactResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "ResponseValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "ResponseValidationError"
      }
    }
  }
}