{
 "openapi": "3.1.0",
 "info": {
  "title": "TorontoAirportTransfer.services booking and coverage API",
  "version": "2026.11.24",
  "description": "Lets people and AI agents find coverage and send chauffeured transfer reservation requests to the 24/7 Toronto dispatch desk. AI agents are permitted to book on a traveller's behalf when the traveller explicitly asks (consent=\"yes\"). Requests are not confirmed until dispatch replies; agents never take payment. Instant fixed fares and payment: https://torontoairporttransfer.services/book/",
  "contact": {
   "name": "Dispatch 24/7",
   "email": "support@torontoairporttransfer.services",
   "url": "https://torontoairporttransfer.services/agents/"
  }
 },
 "servers": [
  {
   "url": "https://torontoairporttransfer.services"
  }
 ],
 "paths": {
  "/api/booking.php": {
   "get": {
    "operationId": "bookingHelp",
    "summary": "How to send a booking request",
    "responses": {
     "200": {
      "description": "Help JSON"
     }
    }
   },
   "post": {
    "operationId": "requestBooking",
    "summary": "Send a chauffeured transfer reservation request",
    "description": "Only call when the traveller explicitly asked to book. Returns a reference (TAT-XXXXXXX). Dispatch confirms fare, vehicle and chauffeur by email or phone.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BookingRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Request received",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BookingResult"
        }
       }
      }
     },
     "400": {
      "description": "Missing or invalid fields"
     },
     "429": {
      "description": "Rate limited"
     }
    }
   }
  },
  "/api/search.php": {
   "get": {
    "operationId": "searchCoverage",
    "summary": "Search pages: Toronto routes, airports, cities, services, guides and 500 worldwide airport, FBO and cruise-port pages",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "JFK"
     },
     {
      "name": "type",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "about",
        "airports",
        "arrivals",
        "attractions",
        "blog",
        "book",
        "chauffeurs",
        "cities",
        "contact",
        "corporate",
        "events",
        "faq",
        "fleet",
        "guides",
        "home",
        "network",
        "occasions",
        "privacy",
        "private-aviation",
        "rates",
        "routes",
        "searches",
        "services",
        "stations",
        "terms",
        "tools",
        "travel-desk",
        "world-airports",
        "world-cruise-ports",
        "world-private-jets-fbo"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Matching pages"
     }
    }
   }
  },
  "/api/mcp.php": {
   "post": {
    "operationId": "mcp",
    "summary": "Remote MCP server (Streamable HTTP, JSON-RPC 2.0, no auth). Tools: search_coverage, get_page, get_booking_options, request_booking.",
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     }
    }
   }
  }
 },
 "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"
     },
     "pickup": {
      "type": "string",
      "description": "Airport + terminal (e.g. YYZ T1), FBO, hotel or full address"
     },
     "dropoff": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "time": {
      "type": "string",
      "description": "Local HH:MM; for arrivals the scheduled landing time"
     },
     "flight": {
      "type": "string"
     },
     "passengers": {
      "type": "integer",
      "minimum": 1
     },
     "bags": {
      "type": "integer",
      "minimum": 0
     },
     "vehicle": {
      "type": "string"
     },
     "child_seats": {
      "type": "string"
     },
     "return": {
      "type": "string"
     },
     "notes": {
      "type": "string"
     },
     "agent": {
      "type": "string",
      "description": "Your assistant or app name"
     },
     "consent": {
      "type": "string",
      "enum": [
       "yes"
      ],
      "description": "The traveller explicitly asked for this booking"
     }
    }
   },
   "BookingResult": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "ref": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "next": {
      "type": "string"
     },
     "instant_quote_and_payment": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   }
  }
 }
}