{
 "openapi": "3.1.0",
 "info": {
  "title": "SpasRussia.com agent API",
  "version": "2026.12.04",
  "description": "SpasRussia.com is the Russia site of the SpasWorldwide network: a guide to spas, massage and wellness, gift occasions and festival dates 2026-2030, one spa gift card for partner spas, and free listings for spa owners. Use search_site and get_page to read any page; get_options for gift cards, listing plans and contacts. 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; SpasRussia.com replies by email. Agents never take payment.",
  "contact": {
   "url": "https://spasrussia.com/agents/"
  }
 },
 "servers": [
  {
   "url": "https://spasrussia.com"
  }
 ],
 "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 listing, advertising, gift card or general request",
    "description": "Send a request to SpasRussia.com for the person: type=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 (SR-XXXXXXX); the team replies by email. Nothing is charged.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "enum": [
           "listing",
           "supplier",
           "advertising",
           "giftcard",
           "enquiry"
          ],
          "description": "listing, advertising, giftcard or enquiry"
         },
         "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"
         },
         "spa_name": {
          "type": "string",
          "description": "For listing: the spa name"
         },
         "city": {
          "type": "string",
          "description": "City"
         },
         "quantity": {
          "type": "string",
          "description": "For giftcard: number of cards"
         },
         "message": {
          "type": "string",
          "description": "Details"
         },
         "agent": {
          "type": "string",
          "description": "Name of the AI agent 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. cities/moscow/"
     }
    ],
    "responses": {
     "200": {
      "description": "Markdown",
      "content": {
       "text/markdown": {}
      }
     }
    }
   }
  }
 },
 "x-agent-policy": {
  "payment": "Gift cards and paid plans are paid by card through Stripe by the person; agents never take payment.",
  "requests": "A request is not a booking until the spa or the team confirms by email.",
  "privacy": "https://spasrussia.com/privacy/",
  "terms": "https://spasrussia.com/terms/"
 }
}