{
 "openapi": "3.1.0",
 "info": {
  "title": "SpasCanada.net agent API",
  "version": "2026.12.01",
  "description": "SpasCanada.net is the Canadian guide to day spas, Nordic and thermal spas, hotel spas, medical spas and massage: 3,577 spa listings in every province and territory, published treatment prices for 13 spas, 19 bookable spa getaways with prices, the Spa & Salon GiftCard, two magazines (SpasCanada Trade Journal, Ritual) and listing plans for spa owners. Use search_spas to find spas by name, city, province or type; search_getaways for getaway packages and prices; search_site and get_page for any page (province and city guides, price guides, magazine articles); get_options for plans, gift cards and policies. AI agents may send requests: only call send_request after the person explicitly asked you to and gave their name and an email or phone; send consent=\"yes\". The result is a request reference; SpasCanada.net replies by email to confirm. Agents never take payment.",
  "contact": {
   "url": "https://spascanada.net/agents/"
  }
 },
 "servers": [
  {
   "url": "https://spascanada.net"
  }
 ],
 "paths": {
  "/api/request.php": {
   "get": {
    "operationId": "requestHelp",
    "summary": "Describe the request fields",
    "responses": {
     "200": {
      "description": "Field list and rules"
     }
    }
   },
   "post": {
    "operationId": "sendRequest",
    "summary": "Send a getaway, listing, advertising, gift card or general request",
    "description": "Send a request to SpasCanada.net for the person: type=getaway (book a spa getaway: getaway, date, guests), listing (list or claim a spa), advertising, giftcard (corporate or bulk cards) or enquiry. Only call when the person asked you to. Returns a reference (SC-XXXXXXX); the team replies by email. Nothing is charged.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "enum": [
           "getaway",
           "listing",
           "advertising",
           "giftcard",
           "enquiry"
          ],
          "description": "getaway = book a spa getaway; listing = list or claim a spa; advertising = magazine or site ads; giftcard = corporate or bulk gift cards; enquiry = anything else"
         },
         "name": {
          "type": "string",
          "description": "Person's full name"
         },
         "email": {
          "type": "string",
          "description": "Email (email or phone required)"
         },
         "phone": {
          "type": "string",
          "description": "Phone with country code"
         },
         "getaway": {
          "type": "string",
          "description": "For type=getaway: the getaway URL or id from search_getaways"
         },
         "date": {
          "type": "string",
          "description": "For type=getaway: preferred date YYYY-MM-DD"
         },
         "guests": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "For type=getaway: number of guests"
         },
         "spa_name": {
          "type": "string",
          "description": "For type=listing: the spa or business name"
         },
         "city": {
          "type": "string"
         },
         "province": {
          "type": "string",
          "description": "Two-letter code, e.g. ON"
         },
         "plan": {
          "type": "string",
          "enum": [
           "Essential (free listing, $12 yearly admin fee)",
           "Signature ($39 a month or $390 a year)",
           "Prestige ($99 a month or $990 a year)",
           "Vendor Showcase ($59 a month)",
           "Vendor Elite ($179 a month)",
           "Pro Profile ($5 a month)",
           "Pro Plus ($15 a month)",
           "Not sure yet"
          ]
         },
         "quantity": {
          "type": "integer",
          "minimum": 1,
          "description": "For type=giftcard: number of cards"
         },
         "message": {
          "type": "string",
          "description": "What the person wants"
         },
         "agent": {
          "type": "string",
          "description": "Name of your assistant or app"
         },
         "consent": {
          "type": "string",
          "enum": [
           "yes"
          ],
          "description": "The person explicitly asked you to send this request"
         }
        },
        "required": [
         "name",
         "consent",
         "type"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Received",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          },
          "ref": {
           "type": "string"
          },
          "status": {
           "type": "string"
          },
          "next": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Missing fields or no consent"
     },
     "429": {
      "description": "Too many requests"
     }
    }
   }
  },
  "/api/mcp.php": {
   "post": {
    "operationId": "mcp",
    "summary": "MCP server (Streamable HTTP, JSON-RPC 2.0)",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     }
    }
   }
  },
  "/{path}index.md": {
   "get": {
    "operationId": "pageMarkdown",
    "summary": "Any page as Markdown",
    "parameters": [
     {
      "name": "path",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "Page path ending in /, e.g. provinces/ontario/toronto/"
     }
    ],
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     }
    }
   }
  }
 },
 "x-agent-policy": {
  "payment": "Agents never take payment. Getaways: after the venue confirms the date we email the person a secure payment link. Listings: the spa pays its plan by payment link. Gift cards are bought at https://vouchers.spas.directory/gift-cards/?site=spascanada.net",
  "confirmation": "A request sent through the API or MCP is not confirmed until SpasCanada.net replies by email.",
  "consent": "Only send a request when the person explicitly asked you to; send consent=\"yes\".",
  "prices": "All prices are in Canadian dollars. Spa menu prices come from each spa's own published menu (checked November 2026), before tax and gratuity. Getaway prices are per package as shown, plus taxes.",
  "contacting_spas": "To book a regular treatment, contact the spa directly with the phone or website on its page. SpasCanada.net does not relay messages to directory listings.",
  "privacy": "Request details are used only to answer the request."
 }
}