{
 "openapi": "3.1.0",
 "info": {
  "title": "Enroutz booking requests",
  "version": "2026-11-24",
  "description": "Send a chauffeur booking request (airport, FBO, hourly, city-to-city, Canada-US cross-border, events, delegations, monthly chauffeur) on behalf of a traveller. Enroutz dispatch confirms price and chauffeur. Agents never take payment.",
  "contact": {
   "email": "support@enroutz.com",
   "url": "https://enroutz.net/agents/"
  },
  "x-mcp-server": "https://enroutz.net/api/mcp.php"
 },
 "servers": [
  {
   "url": "https://enroutz.net"
  }
 ],
 "paths": {
  "/api/search.php": {
   "get": {
    "operationId": "searchCoverage",
    "summary": "Search airports, cities, routes, FBOs, stations, ports, hotels, events, services and guides",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "airports",
        "cities",
        "routes",
        "fbo-private-jet",
        "train-stations",
        "cruise-ports",
        "hotels",
        "events",
        "destinations",
        "government-delegations",
        "corporate",
        "services",
        "blog"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Matching pages with url and markdown links"
     }
    }
   }
  },
  "/api/booking.php": {
   "get": {
    "operationId": "bookingHelp",
    "summary": "Usage help",
    "responses": {
     "200": {
      "description": "JSON help"
     }
    }
   },
   "post": {
    "operationId": "createBookingRequest",
    "summary": "Create a booking request",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookingRequest"
       }
      },
      "application/x-www-form-urlencoded": {
       "schema": {
        "$ref": "#/components/schemas/BookingRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Received",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BookingResult"
        }
       }
      }
     },
     "400": {
      "description": "Missing or invalid fields"
     },
     "429": {
      "description": "Rate limited"
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "BookingRequest": {
    "type": "object",
    "required": [
     "name",
     "pickup",
     "dropoff",
     "date",
     "time",
     "consent"
    ],
    "properties": {
     "name": {
      "type": "string"
     },
     "email": {
      "type": "string",
      "format": "email",
      "description": "Email or phone is required"
     },
     "phone": {
      "type": "string"
     },
     "service": {
      "type": "string",
      "enum": [
       "Hourly livery / as directed (half-day, full-day, multi-day, weekly, monthly)",
       "Airport pickup",
       "Airport drop-off",
       "City to city",
       "Canada-US cross-border",
       "FBO / private jet",
       "Cruise port",
       "Train station",
       "Hotel transfer",
       "Film / TV production",
       "Celebrity / artist (discreet)",
       "Private client / HNWI",
       "Government delegation / consulate",
       "Corporate account / roadshow",
       "Monthly dedicated chauffeur",
       "Wedding / gala / event",
       "Group / Sprinter / coach",
       "Travel Desk (flights, hotels, packages)"
      ]
     },
     "pickup": {
      "type": "string",
      "description": "Airport code + terminal, FBO, hotel or address"
     },
     "dropoff": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "time": {
      "type": "string",
      "description": "Local HH:MM; for arrivals the scheduled landing time"
     },
     "hours": {
      "type": "string",
      "description": "Hourly livery: hours or days needed (e.g. \"6 hours\", \"full day\", \"3 days\", \"weekly\", \"monthly\"); use dropoff \"As directed\""
     },
     "flight": {
      "type": "string"
     },
     "passengers": {
      "type": "integer",
      "minimum": 1
     },
     "bags": {
      "type": "integer",
      "minimum": 0
     },
     "vehicle": {
      "type": "string",
      "enum": [
       "Mercedes-Benz E-Class (or similar)",
       "Mercedes-Benz S-Class (or similar)",
       "Luxury SUV (Escalade / Yukon Denali / Navigator)",
       "Mercedes-Maybach (on request)",
       "Rolls-Royce (on request)",
       "Stretch limousine",
       "Mercedes-Benz Sprinter (up to 14)",
       "Mini coach / motor coach",
       "Multiple vehicles / motorcade"
      ]
     },
     "return": {
      "type": "string"
     },
     "notes": {
      "type": "string"
     },
     "agent": {
      "type": "string",
      "description": "Name of the AI agent or app"
     },
     "consent": {
      "type": "string",
      "enum": [
       "yes"
      ],
      "description": "The traveller explicitly asked for this booking"
     }
    }
   },
   "BookingResult": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "ref": {
      "type": "string",
      "example": "ENZ-K3F9Q2X"
     },
     "status": {
      "type": "string"
     },
     "next": {
      "type": "string"
     },
     "instant_quote": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   }
  }
 }
}