{
 "openapi": "3.1.0",
 "info": {
  "title": "AirportTransfer.Services booking requests",
  "version": "2026-11-23",
  "description": "Send a chauffeured airport / FBO / hotel / cruise / rail transfer request on behalf of a traveller. Only call with the traveller's explicit consent. The dispatch desk confirms price and chauffeur details; a request is not a confirmed booking. For instant prices use the web booker https://yourwebbooker.com/en/blaaklineX.",
  "contact": {
   "email": "support@airporttransfer.services",
   "url": "https://www.airporttransfer.services/agents/"
  },
  "x-mcp-server": "https://www.airporttransfer.services/api/mcp.php"
 },
 "servers": [
  {
   "url": "https://www.airporttransfer.services"
  }
 ],
 "paths": {
  "/api/search.php": {
   "get": {
    "operationId": "searchCoverage",
    "summary": "Search airports, FBOs, hotels, stations, ports, events and guides",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "IATA code, place, hotel, FBO, station, port or topic"
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "airports",
        "fbo-private-jet",
        "hotels",
        "train-stations",
        "cruise-ports",
        "events",
        "corporate",
        "government-delegations",
        "attractions",
        "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 (10 per hour per IP)"
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "BookingRequest": {
    "type": "object",
    "required": [
     "name",
     "pickup",
     "dropoff",
     "date",
     "time",
     "consent"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "Lead passenger full name"
     },
     "email": {
      "type": "string",
      "format": "email",
      "description": "Email or phone is required"
     },
     "phone": {
      "type": "string",
      "description": "Mobile with country code, WhatsApp-capable preferred"
     },
     "service": {
      "type": "string",
      "enum": [
       "Airport pickup",
       "Airport drop-off",
       "Hotel to airport",
       "FBO / private jet",
       "Cruise port",
       "Train station",
       "Hourly / as directed",
       "Delegation / group",
       "Event / VIP"
      ]
     },
     "pickup": {
      "type": "string",
      "description": "Airport IATA code + terminal, FBO, hotel name or full address"
     },
     "dropoff": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date",
      "description": "Local date of pickup (YYYY-MM-DD)"
     },
     "time": {
      "type": "string",
      "description": "Local pickup time (HH:MM). For arrivals use the scheduled landing time."
     },
     "flight": {
      "type": "string",
      "description": "Flight, train or ship identifier"
     },
     "passengers": {
      "type": "integer",
      "minimum": 1
     },
     "bags": {
      "type": "integer",
      "minimum": 0
     },
     "vehicle": {
      "type": "string",
      "enum": [
       "Luxury sedan",
       "Executive sedan",
       "SUV",
       "Sprinter",
       "Stretch limousine",
       "Coach",
       "Multiple vehicles"
      ]
     },
     "return": {
      "type": "string",
      "description": "Return trip details, if any"
     },
     "notes": {
      "type": "string",
      "description": "Child seats, accessibility, NDA, meet & greet sign name, etc."
     },
     "agent": {
      "type": "string",
      "description": "Name of the AI agent / app sending the request"
     },
     "consent": {
      "type": "string",
      "enum": [
       "yes"
      ],
      "description": "The traveller explicitly asked for this booking"
     }
    }
   },
   "BookingResult": {
    "type": "object",
    "properties": {
     "ok": {
      "type": "boolean"
     },
     "ref": {
      "type": "string",
      "example": "ATS-K3F9Q2X"
     },
     "status": {
      "type": "string",
      "example": "received"
     },
     "next": {
      "type": "string"
     },
     "instant_quote": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   }
  }
 }
}