{
 "openapi": "3.1.0",
 "info": {
  "title": "Atlas Mountains Trekking public data",
  "version": "1.0.0",
  "description": "Read-only JSON about our treks and FAQ, a read-only MCP endpoint, and the enquiry form endpoint. There is no booking API."
 },
 "servers": [
  {
   "url": "https://www.atlasmountainstrekking.com"
  }
 ],
 "paths": {
  "/api/treks.json": {
   "get": {
    "summary": "All treks with stages, nights, inclusions and from-prices",
    "responses": {
     "200": {
      "description": "Treks",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/faq.json": {
   "get": {
    "summary": "All FAQ answers",
    "responses": {
     "200": {
      "description": "FAQ",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/mcp": {
   "post": {
    "summary": "Model Context Protocol (JSON-RPC 2.0), read-only tools: list_treks, get_trek, search_faq, how_to_book",
    "requestBody": {
     "content": {
      "application/json": {}
     }
    },
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     }
    }
   }
  },
  "/send.php": {
   "get": {
    "summary": "Get a short-lived form token",
    "parameters": [
     {
      "name": "token",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "1"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "{\"token\": \"...\"}"
     }
    }
   },
   "post": {
    "summary": "Send a trip enquiry to a person (email). Requires a token at least 3 s old. Rate limited.",
    "requestBody": {
     "content": {
      "application/x-www-form-urlencoded": {
       "schema": {
        "type": "object",
        "required": [
         "name",
         "email",
         "token"
        ],
        "properties": {
         "name": {
          "type": "string",
          "maxLength": 80
         },
         "email": {
          "type": "string",
          "format": "email"
         },
         "phone": {
          "type": "string",
          "maxLength": 40
         },
         "trek": {
          "type": "string"
         },
         "start": {
          "type": "string",
          "enum": [
           "Marrakech",
           "Imlil"
          ]
         },
         "month": {
          "type": "string"
         },
         "people": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
         },
         "message": {
          "type": "string",
          "maxLength": 3000
         },
         "token": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "{\"ok\": true} when sent"
     },
     "400": {
      "description": "Invalid input"
     },
     "403": {
      "description": "Foreign origin"
     },
     "429": {
      "description": "Too many requests"
     }
    }
   }
  }
 }
}