{
  "openapi": "3.1.0",
  "info": {
    "title": "Managed Nerds agent intake",
    "version": "1.0.0",
    "description": "For AI agents acting for a buyer: list our services, check fit, read our vendor profile, get a preliminary estimate for managed IT or co-managed security (a monthly range before volume discounts, not an offer) and request a full quote. US-based businesses with fewer than 50 seats. Only call these when your user asked for it, and show them the volume_discounts and disclaimer text, or give them the pdf_url. We never email an address you send us; a person replies within one business day after a full quote request. Agents that send email for their user can instead email quote@managednerds.ai from the user's own mailbox (template in /agent/services): if its domain passes DMARC we reply with the estimate and a PDF.",
    "contact": {
      "name": "Managed Nerds",
      "url": "https://www.managednerds.tech"
    }
  },
  "servers": [
    {
      "url": "https://www.managednerds.tech"
    }
  ],
  "paths": {
    "/agent/guides": {
      "get": {
        "operationId": "listGuides",
        "summary": "Our free guides (prices and plans are inside them, not on the site): what each covers, who it's for, and how to get it. By email: guides@managednerds.ai from the user's own mailbox, and the reply carries a private link. Markdown with ?format=md.",
        "responses": {
          "200": {
            "description": "The guides",
            "content": {
              "application/json": {},
              "text/markdown": {}
            }
          }
        }
      }
    },
    "/agent/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Vendor profile for comparing providers: who we serve, services, support hours, products, how to buy. No prices. Markdown with ?format=md.",
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {},
              "text/markdown": {}
            }
          }
        }
      }
    },
    "/agent/fit": {
      "get": {
        "operationId": "checkFitByLink",
        "summary": "Would Managed Nerds take on this business? No contact details, nothing stored, no prices. Query: seats, country or state, city, platforms (comma list), service_line, tenant, has_it_staff, has_own_rmm, home_office. No parameters: what it takes.",
        "responses": {
          "200": {
            "description": "As POST"
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "checkFit",
        "summary": "The fit check as JSON.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "fit (yes, partial, ask_a_person, no), reasons, unknowns and the next step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FitResult"
                }
              }
            }
          },
          "400": {
            "description": "Not JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/services": {
      "get": {
        "operationId": "listServices",
        "summary": "What we offer, what an estimate needs, and the rules. No prices.",
        "responses": {
          "200": {
            "description": "Services and rules",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/agent/estimate": {
      "post": {
        "operationId": "preliminaryEstimate",
        "summary": "A preliminary estimate for the buyer: co-managed security (default) or managed IT (service_model managed).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "An estimate, or needs_info with the missing fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Estimate"
                }
              }
            }
          },
          "400": {
            "description": "Not JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "preliminaryEstimateByLink",
        "summary": "The same estimate for agents that can only follow links: name, email, business, windows, mac, linux, servers, users, tenant (m365|gws), services (comma list), also, own_rmm (yes|no), rmm_product, accepts_limited_remediation (yes|no), siem_sources, driver, timeline, request, agent, user_approved=yes. Add format=md for Markdown.",
        "responses": {
          "200": {
            "description": "As POST"
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/full-quote": {
      "post": {
        "operationId": "requestFullQuote",
        "summary": "Only after the user says yes: hand the estimate to a person for a full quote.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "estimate_id",
                  "user_approved"
                ],
                "properties": {
                  "estimate_id": {
                    "type": "string"
                  },
                  "user_approved": {
                    "type": "boolean",
                    "const": true
                  },
                  "contact_phone": {
                    "type": "string"
                  },
                  "timeline": {
                    "type": "string",
                    "enum": [
                      "now",
                      "30_days",
                      "quarter",
                      "researching"
                    ]
                  },
                  "best_time_to_call": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Requested: a reference and what happens next"
          },
          "400": {
            "description": "Not JSON, or missing fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "403": {
            "description": "Outside the US: we can only take on US-based customers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "404": {
            "description": "No estimate with that id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/estimate-pdf": {
      "get": {
        "operationId": "estimatePdf",
        "summary": "The pdf_url from an estimate: the same estimate as a branded one-page PDF to give the user.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate PDF",
            "content": {
              "application/pdf": {}
            }
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/callback": {
      "post": {
        "operationId": "requestCallback",
        "summary": "Only when the user asked: a callback from a person at Managed Nerds. Not a booking: a person confirms a time by email within one business day. Windows Monday to Friday, 8am to 6pm Eastern.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "requested (or needs_info with what to change)"
          },
          "400": {
            "description": "Not JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "404": {
            "description": "No estimate with that estimate_id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "requestCallbackByLink",
        "summary": "The same for agents that can only follow links: name, email, phone, business, topic, windows (\"2026-11-24 09:00-11:00;…\"), tz, estimate_id, notes, request, user_approved=yes. Saves it as pending and returns a confirm_url to open after the user says yes. No parameters: what it takes.",
        "responses": {
          "200": {
            "description": "pending_confirmation with a confirm_url"
          }
        }
      }
    },
    "/agent/callback/confirm": {
      "get": {
        "operationId": "confirmCallback",
        "summary": "The confirm_url from a GET callback request. Opening it again changes nothing.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "requested"
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/email-check": {
      "get": {
        "operationId": "checkEmailSecurity",
        "summary": "Free email security check for a domain (or an email or website address): SPF, DKIM, DMARC, mail provider and MTA-STS from public DNS, a grade (good, needs_work, at_risk) and the exact records to fix. No email sent, no contact details; the domain and result are kept 90 days, nothing about who asked. 20 an hour per address, cached 10 minutes. No domain: what it does.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "md"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The check: overall grade and summary, each check with what was found, fixes with suggested records"
          },
          "400": {
            "description": "Not a domain name",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/domain-check": {
      "get": {
        "operationId": "checkDomain",
        "summary": "Free domain health check for a domain (or an email or website address): expiry date and registrar (RDAP), transfer lock, name servers, whether the website loads over https and redirects http, www vs the bare domain, CAA, DNSSEC as a note; a grade (good, needs_work, at_risk) and exactly what to fix. Auto-renew and certificate expiry can't be seen from outside. No contact details; the domain and result are kept 90 days, nothing about who asked. 10 an hour per address, cached 10 minutes. No domain: what it does.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "md"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The check: overall grade and summary, registration data, each check with what was found, and fixes"
          },
          "400": {
            "description": "Not a domain name",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/ai-check": {
      "get": {
        "operationId": "checkAiReadiness",
        "summary": "Free AI search readiness check for a website: robots.txt by crawler job (search crawlers for Google AI Overviews, Bing/Copilot, ChatGPT, Claude, Perplexity, Apple and Meta AI are graded; training crawlers are only noted), the home page (noindex, nosnippet, text without JavaScript, business structured data, title and description), sitemap and llms.txt; a grade (good, needs_work, at_risk) and exactly what to fix. Never pretends to be a crawler. No contact details; the domain and result are kept 90 days, nothing about who asked. 10 an hour per address, cached 10 minutes. No domain: what it does.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "md"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The check: overall grade and summary, each crawler and whether robots.txt allows it, each check, and fixes"
          },
          "400": {
            "description": "Not a domain name",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/ask": {
      "get": {
        "operationId": "ask",
        "summary": "A question about Managed Nerds answered only from our own pages, with sources. Also \"my X isn't working\" questions: a matching step-by-step post's source carries applies_to and last_checked, and still_stuck says how a person can help. Never a price. 100 answers a day across all agents, 5 an hour per address. No q: what it does.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "md"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "answered (answer and sources) or no_answer"
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/request": {
      "post": {
        "operationId": "requestService",
        "summary": "Only when the user asked: a quote from a person for SEO, secure WordPress or a project. No prices: a person replies by email within one business day. Ad management comes only with SEO (seo.wants_ads); an ads-only request answers seo_required.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "requested, needs_info (what's missing), seo_required or outside_service_area"
          },
          "400": {
            "description": "Not JSON, or no such project",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "requestServiceByLink",
        "summary": "The same for agents that can only follow links: line (seo, secure_wp, project), name, email, phone, business, state, website, request, user_approved=yes; SEO: area, services (comma list), analytics, search_console, gbp, goals, provider, ads=yes, ad_platforms, ad_budget; secure WordPress: site, host, dns, plugins, ecommerce, hacked; project: project, details. Saves it as pending and returns a confirm_url. No parameters: what each line needs, and the projects (the list_projects tool): who each is for and isn't, what's included, typical timeline, one-time or ongoing, and its quote_questions. Never a price.",
        "responses": {
          "200": {
            "description": "pending_confirmation with a confirm_url"
          }
        }
      }
    },
    "/agent/request/confirm": {
      "get": {
        "operationId": "confirmServiceRequest",
        "summary": "The confirm_url from a GET service request. Opening it again changes nothing.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "requested"
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/seo-check": {
      "post": {
        "operationId": "requestSeoCheck",
        "summary": "Only when the user asked: the free local SEO check. A person emails a two-page check within three business days. US businesses, one per website, five a week (full_this_week with next_opening past that). No ranking promises, no prices.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeoCheckRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "requested (with due_by), needs_info, already_requested, full_this_week or outside_service_area"
          },
          "400": {
            "description": "Not JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "429": {
            "description": "Too many estimates today from this network, address or business. Retry-After says when the limits reset.",
            "headers": {
              "Retry-After": {
                "description": "Seconds until you can try again (the daily limits reset at midnight UTC)",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "requestSeoCheckByLink",
        "summary": "The same as query parameters: name, email, phone, business, website, city, state, services (up to 3, comma list), gbp, notes, request, user_approved=yes. Saves it as pending and returns a confirm_url. No parameters: what it needs.",
        "responses": {
          "200": {
            "description": "pending_confirmation with a confirm_url"
          }
        }
      }
    },
    "/agent/seo-check/confirm": {
      "get": {
        "operationId": "confirmSeoCheck",
        "summary": "The confirm_url from a GET SEO check request. The weekly cap and one-per-website are checked again. Opening it again changes nothing.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "requested, already_requested or full_this_week"
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/estimate-status": {
      "get": {
        "operationId": "estimateStatus",
        "summary": "The status_url from an estimate: still valid?, expiry, full quote requested?, revisions left. Its token is the status_token for revising the estimate.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate's status"
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          },
          "404": {
            "description": "No estimate for that link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/full-quote/confirm": {
      "get": {
        "operationId": "confirmFullQuote",
        "summary": "The signed confirm_url from an estimate, for agents that can only follow links. Optional: phone, timeline, best_time, notes.",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "As POST /agent/full-quote"
          },
          "400": {
            "description": "Invalid or expired link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ServiceRequest": {
        "type": "object",
        "required": [
          "service_line",
          "contact",
          "business",
          "user_request",
          "user_approved"
        ],
        "properties": {
          "service_line": {
            "type": "string",
            "enum": [
              "seo",
              "secure_wp",
              "project",
              "ads"
            ],
            "description": "ads alone answers seo_required: ad management is only sold with SEO"
          },
          "contact": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "business": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "website": {
                "type": "string"
              }
            }
          },
          "seo": {
            "type": "object",
            "properties": {
              "google_business_profile": {
                "type": "string"
              },
              "has_google_analytics": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "not_sure"
                ]
              },
              "has_search_console": {
                "type": "string",
                "enum": [
                  "yes",
                  "no",
                  "not_sure"
                ]
              },
              "service_area": {
                "type": "string"
              },
              "main_services": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "goals": {
                "type": "string"
              },
              "current_provider": {
                "type": "string"
              },
              "wants_ads": {
                "type": "boolean"
              },
              "ad_platforms": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "google",
                    "microsoft",
                    "meta"
                  ]
                }
              },
              "ad_budget": {
                "type": "string",
                "enum": [
                  "500-1500",
                  "1500-5000",
                  "5000+"
                ],
                "description": "Monthly ad spend (the client's own budget with the ad platform)"
              }
            }
          },
          "secure_wp": {
            "type": "object",
            "properties": {
              "site_url": {
                "type": "string"
              },
              "hosting_provider": {
                "type": "string"
              },
              "dns_provider": {
                "type": "string",
                "description": "Who runs the domain's DNS: GoDaddy, Namecheap, Cloudflare…"
              },
              "plugins": {
                "type": "string"
              },
              "ecommerce": {
                "type": "boolean"
              },
              "hacked_before": {
                "type": "boolean"
              }
            }
          },
          "project": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "details": {
                "type": "string"
              }
            }
          },
          "notes": {
            "type": "string"
          },
          "user_request": {
            "type": "string"
          },
          "user_approved": {
            "type": "boolean"
          }
        }
      },
      "SeoCheckRequest": {
        "type": "object",
        "required": [
          "contact",
          "business",
          "services",
          "user_request",
          "user_approved"
        ],
        "properties": {
          "contact": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "business": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "website": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "state": {
                "type": "string"
              }
            }
          },
          "google_business_profile": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 3
          },
          "notes": {
            "type": "string"
          },
          "user_request": {
            "type": "string"
          },
          "user_approved": {
            "type": "boolean"
          }
        }
      },
      "CallbackRequest": {
        "type": "object",
        "required": [
          "contact",
          "user_approved"
        ],
        "properties": {
          "contact": {
            "type": "object",
            "required": [
              "name",
              "email",
              "phone"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "business": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "website": {
                "type": "string"
              }
            }
          },
          "topic": {
            "type": "string",
            "description": "A service line (co_managed, managed_it, seo, ads, secure_wp, project) or a few words"
          },
          "windows": {
            "type": "array",
            "maxItems": 3,
            "items": {
              "type": "object",
              "required": [
                "date",
                "start",
                "end"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "start": {
                  "type": "string",
                  "example": "09:00"
                },
                "end": {
                  "type": "string",
                  "example": "11:00"
                }
              }
            },
            "description": "Preferred times in time_zone; each must fall on Monday to Friday, 8am to 6pm Eastern. Leave out and we suggest times"
          },
          "time_zone": {
            "type": "string",
            "default": "America/New_York",
            "description": "IANA time zone of the windows"
          },
          "estimate_id": {
            "type": "string",
            "description": "Attach to an estimate you already got (then contact and business come from it; send contact.phone)"
          },
          "notes": {
            "type": "string"
          },
          "user_request": {
            "type": "string",
            "description": "What the user asked, in their words"
          },
          "user_approved": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "FitRequest": {
        "type": "object",
        "description": "Every field is optional; more fields make a firmer answer.",
        "properties": {
          "seats": {
            "type": "integer",
            "description": "Computers or licensed users, whichever is larger"
          },
          "country": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "description": "A US state; given without a country, the US is assumed"
          },
          "city": {
            "type": "string",
            "description": "For on-site work around Augusta, Georgia"
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "windows, mac, linux"
          },
          "service_line": {
            "type": "string",
            "enum": [
              "co_managed",
              "managed_it",
              "cybersecurity",
              "seo",
              "ads",
              "secure_wp",
              "project"
            ],
            "default": "co_managed"
          },
          "tenant": {
            "type": "string",
            "enum": [
              "m365",
              "gws"
            ]
          },
          "has_it_staff": {
            "type": "boolean",
            "description": "Co-managed security is for businesses with their own IT person or provider"
          },
          "has_own_rmm": {
            "type": "boolean"
          },
          "home_office": {
            "type": "boolean",
            "description": "A person working from home: only in our on-site area around Augusta, Georgia, and a person decides"
          }
        }
      },
      "FitResult": {
        "type": "object",
        "properties": {
          "fit": {
            "type": "string",
            "enum": [
              "yes",
              "partial",
              "ask_a_person",
              "no"
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "yes",
                    "partial",
                    "ask_a_person",
                    "no",
                    "info"
                  ]
                },
                "message": {
                  "type": "string"
                }
              }
            }
          },
          "unknown": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "next": {
            "type": "object",
            "properties": {
              "what": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "AgentError": {
        "type": "object",
        "required": [
          "error",
          "code",
          "docs"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, in plain words to pass to the user"
          },
          "code": {
            "type": "string",
            "description": "RATE_LIMITED, BAD_REQUEST, MISSING_TOKEN, INVALID_TOKEN, NOT_FOUND, OUTSIDE_SERVICE_AREA, UNAVAILABLE or INTERNAL_ERROR"
          },
          "retry_after_seconds": {
            "type": "integer",
            "description": "When there's a Retry-After header: the same number of seconds"
          },
          "docs": {
            "type": "string",
            "format": "uri",
            "description": "What to send and how"
          }
        }
      },
      "EstimateRequest": {
        "type": "object",
        "required": [
          "contact",
          "business",
          "user_request",
          "user_approved"
        ],
        "properties": {
          "contact": {
            "type": "object",
            "required": [
              "name",
              "email"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "business": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "website": {
                "type": "string"
              }
            }
          },
          "computers": {
            "type": "object",
            "properties": {
              "windows": {
                "type": "integer"
              },
              "mac": {
                "type": "integer"
              },
              "linux": {
                "type": "integer"
              },
              "servers": {
                "type": "integer"
              }
            }
          },
          "users": {
            "type": "integer",
            "description": "All licensed Microsoft 365 or Google Workspace users in the tenant (ITDR covers every one of them, never just a few)"
          },
          "tenant": {
            "type": "string",
            "enum": [
              "m365",
              "gws"
            ]
          },
          "service_model": {
            "type": "string",
            "enum": [
              "co_managed",
              "managed"
            ],
            "default": "co_managed",
            "description": "managed: we look after your IT for you. Priced from computers, users and tenant, no services list needed. IT support time isn't in the monthly price: it's billed hourly, or from an optional pre-paid block (support)."
          },
          "support": {
            "type": "object",
            "description": "Managed IT only: a pre-paid block of support hours a month, shown as its own range. Send hours_per_month, or non_technical_users and we suggest half an hour a month each. Ask the user whether they want one.",
            "properties": {
              "hours_per_month": {
                "type": "number",
                "minimum": 0.5
              },
              "non_technical_users": {
                "type": "integer"
              }
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "edr",
                "itdr",
                "sat",
                "siem",
                "espm"
              ]
            },
            "description": "Priced in the estimate. ITDR is all or nothing for a tenant: it always covers every licensed user. ESPM is per Windows or Mac computer and requires EDR, which it adds"
          },
          "also_interested_in": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Other service ids from /agent/services; quoted by a person"
          },
          "rmm": {
            "type": "object",
            "description": "Huntress EDR needs an RMM agent: ours, or the client's own if they accept limited remediation during an incident. Ask the user.",
            "properties": {
              "has_own_rmm": {
                "type": "boolean"
              },
              "product": {
                "type": "string"
              },
              "accepts_limited_remediation": {
                "type": "boolean"
              }
            }
          },
          "siem": {
            "type": "object",
            "properties": {
              "data_sources": {
                "type": "integer",
                "description": "Leave out to count one per computer"
              }
            }
          },
          "driver": {
            "type": "string",
            "enum": [
              "cyber_insurance",
              "compliance",
              "incident",
              "client_contract",
              "other"
            ]
          },
          "timeline": {
            "type": "string",
            "enum": [
              "now",
              "30_days",
              "quarter",
              "researching"
            ]
          },
          "user_request": {
            "type": "string",
            "description": "What the user asked, in their words"
          },
          "agent": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "operator": {
                "type": "string"
              }
            }
          },
          "user_approved": {
            "type": "boolean",
            "const": true,
            "description": "The user asked for this estimate"
          },
          "revises": {
            "type": "string",
            "description": "Revise an earlier estimate instead of starting a new one: its estimate_id. Needs status_token. Up to 5 revisions; contact and business stay as first given"
          },
          "status_token": {
            "type": "string",
            "description": "The token from the earlier estimate's status_url"
          }
        }
      },
      "Estimate": {
        "type": "object",
        "properties": {
          "estimate_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "estimate",
              "custom_quote",
              "outside_service_area",
              "needs_info"
            ]
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "monthly_range_usd": {
            "type": "object",
            "properties": {
              "low": {
                "type": "number"
              },
              "high": {
                "type": "number"
              }
            },
            "nullable": true
          },
          "one_time_range_usd": {
            "type": "object",
            "properties": {
              "low": {
                "type": "number"
              },
              "high": {
                "type": "number"
              }
            },
            "nullable": true
          },
          "valid_until": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "included": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "not_included": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scoped_on_call": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "volume_discounts": {
            "type": "string"
          },
          "service_model": {
            "type": "string",
            "enum": [
              "co_managed",
              "managed"
            ]
          },
          "it_support": {
            "type": "string",
            "description": "Managed IT only: IT support time isn't in the monthly price"
          },
          "why_managed": {
            "type": "string",
            "description": "Managed IT only: why managed costs more than co-managed"
          },
          "support_block": {
            "type": "object",
            "nullable": true,
            "description": "Managed IT only: the pre-paid support block, on top of monthly_range_usd",
            "properties": {
              "hours_per_month": {
                "type": "number"
              },
              "monthly_range_usd": {
                "type": "object",
                "properties": {
                  "low": {
                    "type": "number"
                  },
                  "high": {
                    "type": "number"
                  }
                },
                "nullable": true
              },
              "suggested": {
                "type": "boolean"
              },
              "basis": {
                "type": "string"
              }
            }
          },
          "disclaimer": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "description": "0 for the first answer, then 1, 2… for each revision"
          },
          "status_url": {
            "type": "string",
            "nullable": true,
            "description": "Check this estimate later, or revise it (its token is status_token)"
          },
          "pdf_url": {
            "type": "string",
            "nullable": true,
            "description": "The same estimate as a branded PDF for the user; null when there's no number"
          },
          "next": {
            "type": "object",
            "nullable": true,
            "description": "How to request a full quote: a POST body and a confirm_url"
          }
        }
      }
    }
  }
}