{
  "openapi": "3.1.0",
  "info": {
    "title": "PaintersMN painting quote request",
    "version": "1.2.0",
    "description": "Lets an AI assistant request painting quotes for a Minnesota homeowner, with their permission. The homeowner must confirm by email before anything is shared with a painter. The Project Planner page (https://paintersmn.com/project-planner) also offers WebMCP tools: get_intake_instructions, get_intake_schema, submit_painting_intake."
  },
  "servers": [
    {
      "url": "https://paintersmn.com"
    }
  ],
  "paths": {
    "/api/public/agent-lead": {
      "post": {
        "operationId": "requestPaintingQuote",
        "summary": "Request painting quotes for a Minnesota homeowner",
        "description": "Steps for assistants:\n1. Collect the required fields (project_type, city, timeline, name, email, plus consent in step 5). Then offer the optional project details in one grouped question; they help painters quote, but leave out anything your user does not know or declines. Optional details never block a valid request.\n2. You may use what you already know about your user (name, email, phone, address) only with their permission. Tell them what you would reuse and ask first.\n3. Do not guess or make up answers. Never infer square feet, dimensions, phone or address. 'Paint three bedrooms' means areas=bedrooms with the room count in scope; 'the whole interior of a three-bedroom home' means areas=whole-interior with 'three-bedroom home' in scope.\n4. Show your user a summary of everything you plan to send and get an explicit yes before you submit.\n5. Send consent_v1 in the consent field only after your user agrees to: 'I agree to share these project details with PaintersMN and up to 3 Minnesota painters who serve my city, so they can contact me about this job.' If they say no, do not submit.\n6. After you submit, tell your user to open the 'Confirm my email' message from PaintersMN themselves. Nothing is shared with painters until they confirm. Do not open the link for them.\n\nConsent statement: 'I agree to share these project details with PaintersMN and up to 3 Minnesota painters who serve my city, so they can contact me about this job.'\n\nInstead of submitting, you may hand back a pre-filled planner link. Every field except consent works as a URL parameter (lists comma-separated), for example:\nhttps://paintersmn.com/project-planner?type=exterior&additional_types=deck&city=Duluth&address=123%20Main%20St&areas=front,back,left-side,right-side,deck-boards&stories=2-stories&size_band=2000-3000&sqft=2200&conditions=peeling-or-flaking,rot-or-damaged-wood&color_change=change-color-similar-shade&prep_needs=scraping-loose-paint,power-washing&photo_notes=Worst%20peeling%20on%20south%20side&timeline=this-season&readiness=comparing&ownership=owner&co_decider=yes-both-will-be-there&occupied=yes&pets=no&furniture=not-applicable-exterior&contact_window=evening&scope=HOA%20color%20approval%20needed&name=Jane%20Doe&email=jane@example.com&phone=218-555-0100",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "project_type",
                  "city",
                  "timeline",
                  "name",
                  "email",
                  "consent"
                ],
                "properties": {
                  "project_type": {
                    "description": "Main project type. Ask your user: \"What is the main painting job: interior, exterior, cabinets, deck staining or commercial?\" Required.",
                    "type": "string",
                    "enum": [
                      "interior",
                      "exterior",
                      "cabinets",
                      "deck",
                      "commercial"
                    ]
                  },
                  "additional_types": {
                    "description": "Other project types. Ask your user: \"Is any other kind of painting part of the same project?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "interior",
                        "exterior",
                        "cabinets",
                        "deck",
                        "commercial"
                      ]
                    },
                    "maxItems": 5
                  },
                  "city": {
                    "description": "Minnesota city. Ask your user: \"Which Minnesota city is the home or building in?\" Required.",
                    "type": "string",
                    "maxLength": 80
                  },
                  "address": {
                    "description": "Street address. Ask your user: \"What is the street address? (Only with your permission.)\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "maxLength": 200
                  },
                  "areas": {
                    "description": "Rooms, sides or surfaces. Ask your user: \"Which rooms, sides or surfaces need work?\" Optional, but please ask. Leave it out if your user does not know. Pick the options that match the project types. interior: living-room, kitchen, bedrooms, bathrooms, hallways-stairs, basement, ceilings, trim-and-doors, whole-interior. exterior: front, back, left-side, right-side, trim-only, garage, whole-exterior. cabinets: kitchen-cabinets, island, bathroom-vanities, built-ins. deck: deck-boards, railings, stairs, fence, porch. commercial: living-room, kitchen, bedrooms, bathrooms, hallways-stairs, basement, ceilings, trim-and-doors, whole-interior, office-walls, lobby, restrooms, exterior-facade.",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "living-room",
                        "kitchen",
                        "bedrooms",
                        "bathrooms",
                        "hallways-stairs",
                        "basement",
                        "ceilings",
                        "trim-and-doors",
                        "whole-interior",
                        "front",
                        "back",
                        "left-side",
                        "right-side",
                        "trim-only",
                        "garage",
                        "whole-exterior",
                        "kitchen-cabinets",
                        "island",
                        "bathroom-vanities",
                        "built-ins",
                        "deck-boards",
                        "railings",
                        "stairs",
                        "fence",
                        "porch",
                        "office-walls",
                        "lobby",
                        "restrooms",
                        "exterior-facade"
                      ]
                    },
                    "maxItems": 30
                  },
                  "stories": {
                    "description": "Stories. Ask your user: \"How many stories is the house?\" Optional, but please ask. Leave it out if your user does not know. Exterior projects only.",
                    "type": "string",
                    "enum": [
                      "1-story",
                      "1-5-stories",
                      "2-stories",
                      "3-plus-stories"
                    ]
                  },
                  "size_band": {
                    "description": "Size band. Ask your user: \"Roughly how big is the home or project area?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "under-1000",
                      "1000-2000",
                      "2000-3000",
                      "3000-plus",
                      "not-sure"
                    ]
                  },
                  "sqft": {
                    "description": "Approximate square feet. Ask your user: \"Do you know the approximate square feet?\" Optional, but please ask. Leave it out if your user does not know. Digits only.",
                    "type": "string",
                    "maxLength": 6,
                    "pattern": "^[0-9]{1,6}$"
                  },
                  "conditions": {
                    "description": "Current condition. Ask your user: \"What shape are the surfaces in now (peeling, cracks, stains, rot, mildew)?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "good-shape-just-a-refresh",
                        "peeling-or-flaking",
                        "cracks-holes-to-patch",
                        "water-stains-or-damage",
                        "rot-or-damaged-wood",
                        "mildew-dirt",
                        "smoke-or-odor-stains",
                        "not-sure-needs-assessment"
                      ]
                    },
                    "maxItems": 8
                  },
                  "color_change": {
                    "description": "Color plan. Ask your user: \"Are you keeping the same color, changing it, or not sure yet?\" Optional, but please ask. Leave it out if your user does not know. stain-same-tone and stain-new-tone are for deck staining.",
                    "type": "string",
                    "enum": [
                      "keep-the-same-similar-color",
                      "change-color-similar-shade",
                      "dark-to-light-extra-coats",
                      "light-to-dark",
                      "stain-same-tone",
                      "stain-new-tone",
                      "undecided-want-advice"
                    ]
                  },
                  "prep_needs": {
                    "description": "Expected prep. Ask your user: \"What prep do you expect (patching, caulking, scraping, power washing, priming, repairs, wallpaper or stain removal)?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "patch-and-sand",
                        "caulking",
                        "scraping-loose-paint",
                        "power-washing",
                        "priming",
                        "wood-board-replacement",
                        "wallpaper-removal",
                        "strip-old-stain"
                      ]
                    },
                    "maxItems": 8
                  },
                  "photo_notes": {
                    "description": "Photo notes. Ask your user: \"Anything painters should know about what photos would show? (Photos can be added later on the planner.)\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "maxLength": 400
                  },
                  "timeline": {
                    "description": "Timeline. Ask your user: \"When do you want the work done?\" Required.",
                    "type": "string",
                    "enum": [
                      "asap",
                      "this-season",
                      "1-3-months",
                      "flexible"
                    ]
                  },
                  "readiness": {
                    "description": "Readiness. Ask your user: \"Are you ready to hire, comparing 2-3 quotes, or just researching?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "ready",
                      "comparing",
                      "researching"
                    ]
                  },
                  "ownership": {
                    "description": "Ownership. Ask your user: \"Do you own the home, rent it, or something else?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "owner",
                      "renter",
                      "other"
                    ]
                  },
                  "co_decider": {
                    "description": "Co-decider. Ask your user: \"Will anyone else who decides be at the estimate?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "yes-both-will-be-there",
                      "no-i-decide-alone",
                      "not-sure-yet"
                    ]
                  },
                  "occupied": {
                    "description": "Occupied during work. Ask your user: \"Will people be living or working there during the job?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "yes",
                      "no"
                    ]
                  },
                  "pets": {
                    "description": "Pets. Ask your user: \"Are there pets at home?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "yes",
                      "no"
                    ]
                  },
                  "furniture": {
                    "description": "Furniture. Ask your user: \"Who will move furniture, or are the rooms empty?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "ill-move-it",
                      "crew-moves-it",
                      "rooms-are-empty",
                      "not-applicable-exterior"
                    ]
                  },
                  "contact_window": {
                    "description": "Best time to call. Ask your user: \"What time of day is best for painters to reach you?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "enum": [
                      "morning",
                      "afternoon",
                      "evening",
                      "anytime"
                    ]
                  },
                  "scope": {
                    "description": "Notes for painters. Ask your user: \"Anything else painters should know (gate codes, deadlines, HOA rules, paint sensitivities)?\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "maxLength": 1500
                  },
                  "name": {
                    "description": "Full name. Ask your user: \"What is your full name?\" Required.",
                    "type": "string",
                    "maxLength": 100
                  },
                  "email": {
                    "description": "Email. Ask your user: \"What email should PaintersMN send the confirmation to?\" Required.",
                    "type": "string",
                    "maxLength": 255,
                    "format": "email"
                  },
                  "phone": {
                    "description": "Phone. Ask your user: \"What phone number can painters call? (Strongly encouraged.)\" Optional, but please ask. Leave it out if your user does not know.",
                    "type": "string",
                    "maxLength": 30
                  },
                  "contact_requested": {
                    "description": "Share with painters. Ask your user: \"Do you want your brief shared with up to 3 matching painters so they can contact you?\" Optional, but please ask. Leave it out if your user does not know. Defaults to true.",
                    "type": "boolean",
                    "default": true
                  },
                  "consent": {
                    "description": "Consent. Ask your user: \"Do you agree: 'I agree to share these project details with PaintersMN and up to 3 Minnesota painters who serve my city, so they can contact me about this job.'\" Required. Send consent_v1 only after an explicit yes. If your user says no, do not submit.",
                    "type": "string",
                    "enum": [
                      "consent_v1"
                    ]
                  },
                  "assistant_name": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Optional. Your assistant's name, for our records."
                  }
                }
              },
              "example": {
                "project_type": "exterior",
                "additional_types": [
                  "deck"
                ],
                "city": "Duluth",
                "address": "123 Main St",
                "areas": [
                  "front",
                  "back",
                  "left-side",
                  "right-side",
                  "deck-boards"
                ],
                "stories": "2-stories",
                "size_band": "2000-3000",
                "sqft": "2200",
                "conditions": [
                  "peeling-or-flaking",
                  "rot-or-damaged-wood"
                ],
                "color_change": "change-color-similar-shade",
                "prep_needs": [
                  "scraping-loose-paint",
                  "power-washing"
                ],
                "photo_notes": "Worst peeling on south side",
                "timeline": "this-season",
                "readiness": "comparing",
                "ownership": "owner",
                "co_decider": "yes-both-will-be-there",
                "occupied": "yes",
                "pets": "no",
                "furniture": "not-applicable-exterior",
                "contact_window": "evening",
                "scope": "HOA color approval needed",
                "name": "Jane Doe",
                "email": "jane@example.com",
                "phone": "218-555-0100",
                "contact_requested": true,
                "consent": "consent_v1",
                "assistant_name": "YourAssistant"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved. Returns ok, reference, status_url and next_step. Ask the homeowner to confirm the email from PaintersMN."
          },
          "400": {
            "description": "Invalid fields, missing or unknown consent version, or city outside Minnesota"
          },
          "429": {
            "description": "Too many requests"
          }
        }
      }
    }
  }
}
