{
  "openapi": "3.1.0",
  "info": {
    "title": "Sweet Life Heating & Cooling booking",
    "version": "1",
    "summary": "Book a visit the same way the booking page does. Prices are published and final before tax. The customer pays in their browser unless agent payment is switched on for this company."
  },
  "servers": [
    {
      "url": "https://api.forwardplatform.ai"
    }
  ],
  "paths": {
    "/t/sweetlife/service-area": {
      "get": {
        "operationId": "serviceArea",
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Whether this ZIP is served."
          }
        }
      }
    },
    "/t/sweetlife/offer": {
      "get": {
        "operationId": "offer",
        "parameters": [
          {
            "name": "lane",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "service",
                "tuneup",
                "generator",
                "blink",
                "replace",
                "member"
              ]
            }
          },
          {
            "name": "symptom",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "age_years",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "working",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Days and windows this customer may be offered. Closed days are omitted."
          }
        }
      }
    },
    "/t/sweetlife/capacity": {
      "get": {
        "operationId": "capacity",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Raw open windows. Prefer offer, which applies the booking rules."
          }
        }
      }
    },
    "/t/sweetlife/checkout": {
      "post": {
        "operationId": "checkout",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sku",
                  "customer_name",
                  "customer_phone",
                  "service_zip"
                ],
                "properties": {
                  "sku": {
                    "type": "string",
                    "enum": [
                      "tuneup",
                      "heat",
                      "diag",
                      "diag_ah",
                      "member"
                    ]
                  },
                  "customer_name": {
                    "type": "string"
                  },
                  "customer_phone": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "service_address": {
                    "type": "string"
                  },
                  "service_city": {
                    "type": "string"
                  },
                  "service_state": {
                    "type": "string"
                  },
                  "service_zip": {
                    "type": "string"
                  },
                  "appointment_start": {
                    "type": "string"
                  },
                  "arrival_window": {
                    "type": "string"
                  },
                  "symptom": {
                    "type": "string"
                  },
                  "sms_opt_in": {
                    "type": "string",
                    "enum": [
                      "yes",
                      "no"
                    ],
                    "description": "Required for agents. Ask the customer. Never default it."
                  },
                  "success_url": {
                    "type": "string"
                  },
                  "cancel_url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A Stripe Checkout URL. Retries with the same Idempotency-Key return the same session."
          }
        }
      }
    },
    "/t/sweetlife/mcp": {
      "post": {
        "operationId": "mcp",
        "responses": {
          "200": {
            "description": "Model Context Protocol, streamable HTTP. GET returns 405."
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://api.forwardplatform.ai/t/sweetlife/agent.json",
    "description": "The same door, in prose."
  }
}