{"openapi":"3.1.0","info":{"title":"ServiceFront API","version":"1.0.0","summary":"Read the owner-verified facts and prices of local service businesses on ServiceFront.","description":"ServiceFront is an AI front desk for plumbers, HVAC techs, electricians, and contractors. It answers customers on a business's website and its hosted page on servicefront.ai, flags urgent jobs, quotes only prices the owner has confirmed, and emails the owner the lead. It doesn't answer phone calls.\n\nThis API only reads. It answers from owner-verified facts: a field that's absent isn't confirmed, so never state it, and never invent a price. Every operation is a GET, anonymous (no key, no sign-in) and rate-limited per IP; a 429 carries Retry-After.\n\nFind a business's businessId with searchBusinesses, then read it with getBusinessInfo and getQuote. To be called back or to ask for a time, the customer goes to the business itself: its front desk page (origin) or its confirmed phone. The other operations answer about ServiceFront itself, for a business owner shopping for a front desk.\n\nOperation IDs match the tool names on the MCP server (https://servicefront.ai/api/mcp) and the A2A endpoint (https://servicefront.ai/api/a2a). The version is in the path: a breaking change ships under a new version, never in place.","contact":{"name":"ServiceFront","url":"https://servicefront.ai","email":"hello@servicefront.ai"}},"externalDocs":{"description":"llms.txt: every agent surface ServiceFront has","url":"https://servicefront.ai/llms.txt"},"servers":[{"url":"https://servicefront.ai/api/v1"}],"security":[],"tags":[{"name":"Businesses","description":"Find a business and read its owner-verified facts and prices."},{"name":"ServiceFront","description":"What ServiceFront is, its pricing and setup, and a sample conversation."}],"paths":{"/businesses":{"get":{"operationId":"searchBusinesses","summary":"Find a business's businessId by name","description":"Find a verified ServiceFront business by name (or part of it) and get its businessId for the other tools. Returns up to 5 matches with name, trade, and front-desk URL.","tags":["Businesses"],"parameters":[{"name":"query","in":"query","required":true,"description":"The business name, or part of it.","schema":{"type":"string","minLength":2,"maxLength":100}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"businessId":{"type":"string","description":"The business's ServiceFront slug."},"name":{"type":"string"},"trade":{"type":"string","description":"The trade, as a label."},"city":{"type":"string"},"origin":{"type":"string","description":"The business's front desk page."}},"required":["businessId","name","trade","origin"],"additionalProperties":{}}},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":"string","description":"Guidance for the agent relaying this answer. Read it before answering the customer."}},"required":["results","count"],"additionalProperties":{}}}}},"400":{"description":"A parameter is missing or invalid (code invalid_input).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No endpoint at this path (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/businesses/{businessId}":{"get":{"operationId":"getBusinessInfo","summary":"Get verified business info","description":"Owner-verified facts for one business: trade, service area, hours, contact, services with confirmed prices. Absent fields are NOT owner-confirmed — don't state them as facts. No tool on this address takes a customer's contact details. To be called back or to ask for a time, the customer goes to the business: its front desk page (origin in the reply) or its confirmed phone.","tags":["Businesses"],"parameters":[{"name":"businessId","in":"path","required":true,"description":"The business's ServiceFront slug, the first label of its <slug>.servicefront.ai address. Find it with searchBusinesses if you only know the name.","schema":{"type":"string","minLength":1,"maxLength":63}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"businessId":{"type":"string","description":"The business's ServiceFront slug."},"name":{"type":"string"},"trade":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]},"tradeLabel":{"type":"string"},"origin":{"type":"string","description":"The business's front desk page."},"verified":{"type":"boolean","const":true},"bookable":{"type":"boolean"},"facts":{"type":"object","properties":{"name":{"type":"string"},"tagline":{"type":"string"},"description":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"city":{"type":"string"},"serviceAreaCities":{"type":"array","items":{"type":"string"},"description":"Towns the owner confirmed. It may not name every place they cover."},"serviceAreaPostalCodes":{"type":"array","items":{"type":"string"}},"hoursSummary":{"type":"string"},"timezone":{"description":"The IANA zone the hours are in.","type":"string"},"emergencyService":{"type":"boolean"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"},"faq":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"],"additionalProperties":{}},"description":"The owner's answers about this service."}},"required":["name"],"additionalProperties":{}}},"licenseNumber":{"type":"string"},"insured":{"type":"boolean"},"yearsInBusiness":{"type":"number"},"paymentMethods":{"type":"array","items":{"type":"string"}},"visitFee":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"none"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"fee"},"cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"waivedWithWork":{"default":false,"type":"boolean"}},"required":["kind","cents","waivedWithWork"],"additionalProperties":false}]},"freeEstimates":{"type":"boolean"},"afterHours":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"no"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"yes"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"fee"},"cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"after":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["kind","cents"],"additionalProperties":false}]},"notOffered":{"description":"Jobs the owner said they don't take.","type":"array","items":{"type":"string"}}},"required":["serviceAreaCities","services"],"additionalProperties":{},"description":"Owner-verified facts. An absent field isn't owner-confirmed: never state it as a fact."},"booking":{"description":"Present only while the business takes booking requests.","type":"object","properties":{"open":{"type":"boolean","const":true},"calendar":{"type":"string","enum":["owner","demo"]},"until":{"type":"string"},"how":{"type":"string"},"note":{"type":"string","description":"Guidance for the agent relaying this answer. Read it before answering the customer."}},"required":["open","calendar","how","note"],"additionalProperties":{}},"note":{"type":"string","description":"Guidance for the agent relaying this answer. Read it before answering the customer."}},"required":["businessId","name","trade","tradeLabel","origin","verified","bookable","facts"],"additionalProperties":{}}}}},"400":{"description":"A parameter is missing or invalid (code invalid_input).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No verified business with this businessId (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/businesses/{businessId}/quote":{"get":{"operationId":"getQuote","summary":"Get an owner-confirmed price","description":"The owner-confirmed price for one of a business's services, by service name (ideally a name from getBusinessInfo). grounded:false means no confirmed price exists — never invent one; for an exact quote the customer asks the business on its front desk page (origin in getBusinessInfo) or calls its confirmed phone.","tags":["Businesses"],"parameters":[{"name":"businessId","in":"path","required":true,"description":"The business's ServiceFront slug, the first label of its <slug>.servicefront.ai address. Find it with searchBusinesses if you only know the name.","schema":{"type":"string","minLength":1,"maxLength":63}},{"name":"service","in":"query","required":true,"description":"The service to price — ideally one of the business's listed service names.","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"grounded":{"type":"boolean","const":true,"description":"An owner-confirmed price exists."},"businessId":{"type":"string","description":"The business's ServiceFront slug."},"service":{"type":"string"},"price":{"type":"string"},"faq":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"],"additionalProperties":{}},"description":"The owner's answers about this service."},"note":{"type":"string","description":"Guidance for the agent relaying this answer. Read it before answering the customer."}},"required":["grounded","businessId","service","price","note"],"additionalProperties":{}},{"type":"object","properties":{"grounded":{"type":"boolean","const":false,"description":"No owner-confirmed price. Never invent one."},"businessId":{"type":"string","description":"The business's ServiceFront slug."},"requested":{"type":"string"},"pricedServices":{"type":"array","items":{"type":"string"},"description":"Services that do have an owner-confirmed price."},"service":{"type":"string"},"faq":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"],"additionalProperties":{}},"description":"The owner's answers about this service."},"note":{"type":"string","description":"Guidance for the agent relaying this answer. Read it before answering the customer."}},"required":["grounded","businessId","requested","pricedServices","note"],"additionalProperties":{}}]}}}},"400":{"description":"A parameter is missing or invalid (code invalid_input).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No verified business with this businessId (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/servicefront":{"get":{"operationId":"aboutServiceFront","summary":"About ServiceFront","description":"What ServiceFront is, for a service business owner (or their AI assistant) looking for an AI front desk: who it's for, how setup works, what it answers, and what it doesn't do yet. No input. For prices call getPricing; for a demo call sampleConversation.","tags":["ServiceFront"],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"},"definition":{"type":"string"},"whoItsFor":{"type":"string"},"howItWorks":{"type":"array","items":{"type":"string"}},"whatItAnswers":{"type":"string"},"whatItDoesnt":{"type":"array","items":{"type":"string"}},"plans":{"type":"array","items":{"type":"string"}},"website":{"type":"string"}},"required":["name","summary","definition","whoItsFor","howItWorks","whatItAnswers","whatItDoesnt","plans","website"],"additionalProperties":{}}}}},"404":{"description":"No endpoint at this path (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/servicefront/pricing":{"get":{"operationId":"getPricing","summary":"ServiceFront pricing","description":"ServiceFront's own plans and limits (Free $0, Basic $59): what each includes and what's never charged for. No input. The same content as https://servicefront.ai/pricing.md.","tags":["ServiceFront"],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"tiers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"},"cadence":{"type":"string"},"tagline":{"type":"string"},"features":{"type":"array","items":{"type":"string"}}},"required":["name","price","cadence","features"],"additionalProperties":{}}},"limits":{"type":"array","items":{"type":"string"}},"pricingPage":{"type":"string"}},"required":["summary","tiers","limits","pricingPage"],"additionalProperties":{}}}}},"404":{"description":"No endpoint at this path (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/servicefront/setup":{"get":{"operationId":"howToSetUp","summary":"Set up a ServiceFront front desk","description":"How a service business owner sets up their own ServiceFront front desk: the steps, the <slug>.servicefront.ai address it goes live at, and the one-line widget for their website. No input. The owner signs up themselves; no tool creates an account.","tags":["ServiceFront"],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"signUp":{"type":"object","properties":{"url":{"type":"string"},"note":{"type":"string"}},"required":["url","note"],"additionalProperties":{}},"steps":{"type":"array","items":{"type":"string"}},"goLive":{"type":"object","properties":{"pattern":{"type":"string"},"example":{"type":"string"},"note":{"type":"string"}},"required":["pattern","example","note"],"additionalProperties":{}},"share":{"type":"string"},"widget":{"type":"object","properties":{"snippet":{"type":"string"},"where":{"type":"string"}},"required":["snippet","where"],"additionalProperties":{}},"review":{"type":"string"}},"required":["signUp","steps","goLive","share","widget"],"additionalProperties":{}}}}},"404":{"description":"No endpoint at this path (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/servicefront/sample-conversation":{"get":{"operationId":"sampleConversation","summary":"Sample front-desk conversation for a trade","description":"A sample conversation between a homeowner and a ServiceFront front desk in one trade: the question, the answer, urgency triage, and the captured lead. The business in it is a made-up example. Ready trades: plumbing; any other trade says it isn't ready yet and returns a ready trade's sample as a labeled stand-in.","tags":["ServiceFront"],"parameters":[{"name":"trade","in":"query","required":true,"description":"The owner's trade.","schema":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"ready":{"type":"boolean","const":true},"isExample":{"type":"boolean","const":true},"trade":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]},"tradeLabel":{"type":"string"},"exampleBusiness":{"type":"object","properties":{"isExample":{"type":"boolean","const":true},"name":{"type":"string"},"area":{"type":"string"},"hours":{"type":"string"},"emergencyService":{"type":"boolean"},"serviceAreaCities":{"type":"array","items":{"type":"string"}},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"}},"required":["name","price"],"additionalProperties":{}}},"note":{"type":"string"}},"required":["isExample","name","area","hours","emergencyService","serviceAreaCities","services","note"],"additionalProperties":{}},"conversations":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"urgency":{"type":"string","enum":["routine","emergency"]},"turns":{"type":"array","items":{"type":"object","properties":{"speaker":{"type":"string","enum":["homeowner","front desk"]},"text":{"type":"string"},"shows":{"type":"string","enum":["answer","service area","price","triage","lead"]}},"required":["speaker","text"],"additionalProperties":{}}},"outcome":{"type":"string"}},"required":["title","urgency","turns","outcome"],"additionalProperties":{}}}},"required":["ready","isExample","trade","tradeLabel","exampleBusiness","conversations"],"additionalProperties":{}},{"type":"object","properties":{"ready":{"type":"boolean","const":false,"description":"No sample for this trade yet; standIn is a ready trade's, labeled."},"trade":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]},"tradeLabel":{"type":"string"},"readyTrades":{"type":"array","items":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]}},"standIn":{"type":"object","properties":{"isExample":{"type":"boolean","const":true},"trade":{"type":"string","enum":["plumbing","hvac","electrical","roofing","landscaping","cleaning","pest-control","general-contracting","other"]},"tradeLabel":{"type":"string"},"exampleBusiness":{"type":"object","properties":{"isExample":{"type":"boolean","const":true},"name":{"type":"string"},"area":{"type":"string"},"hours":{"type":"string"},"emergencyService":{"type":"boolean"},"serviceAreaCities":{"type":"array","items":{"type":"string"}},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string"}},"required":["name","price"],"additionalProperties":{}}},"note":{"type":"string"}},"required":["isExample","name","area","hours","emergencyService","serviceAreaCities","services","note"],"additionalProperties":{}},"conversations":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"urgency":{"type":"string","enum":["routine","emergency"]},"turns":{"type":"array","items":{"type":"object","properties":{"speaker":{"type":"string","enum":["homeowner","front desk"]},"text":{"type":"string"},"shows":{"type":"string","enum":["answer","service area","price","triage","lead"]}},"required":["speaker","text"],"additionalProperties":{}}},"outcome":{"type":"string"}},"required":["title","urgency","turns","outcome"],"additionalProperties":{}}}},"required":["isExample","trade","tradeLabel","exampleBusiness","conversations"],"additionalProperties":{}}},"required":["ready","trade","tradeLabel","readyTrades"],"additionalProperties":{}}]}}}},"400":{"description":"A parameter is missing or invalid (code invalid_input).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No endpoint at this path (code not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"Something went wrong on our side (code internal_error).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found","invalid_input","method_not_allowed","rate_limited","internal_error"],"description":"Machine-readable: what went wrong."},"message":{"type":"string","description":"What went wrong, in words."},"hint":{"description":"What to do next.","type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}},"responses":{"RateLimited":{"description":"Too many requests from this client (code rate_limited).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}