{
 "openapi": "3.1.0",
 "info": {
  "title": "CobourgLimo.com fares, packages and booking requests",
  "version": "2026-11-24",
  "description": "Fares and round-trip packages from Cobourg, Ontario (CAD, HST included, booker quote 2026-11-19), site search, and a booking-request endpoint AI agents may call on behalf of a traveller who asked to book. No payment is taken: the dispatch desk confirms the fixed fare and chauffeur, and the traveller pays at https://cobourglimo.com/book/ or a package pay link. A request is not a confirmed booking.",
  "contact": {
   "name": "CobourgLimo.com",
   "url": "https://cobourglimo.com/agents/",
   "email": "support@cobourglimo.com"
  },
  "x-mcp-server": "https://cobourglimo.com/api/mcp.php"
 },
 "servers": [
  {
   "url": "https://cobourglimo.com"
  }
 ],
 "paths": {
  "/api/fares.json": {
   "get": {
    "operationId": "getFares",
    "summary": "One-way planning fares from Victoria Hall, Cobourg, by destination and vehicle class",
    "responses": {
     "200": {
      "description": "Fare matrix",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "currency": {
           "type": "string",
           "const": "CAD"
          },
          "hst_included": {
           "type": "boolean"
          },
          "source": {
           "type": "string"
          },
          "origin": {
           "type": "string"
          },
          "booking_url": {
           "type": "string",
           "format": "uri"
          },
          "one_way": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "destination": {
              "type": "string"
             },
             "km": {
              "type": [
               "number",
               "string"
              ]
             },
             "minutes": {
              "type": "object",
              "properties": {
               "min": {
                "type": "integer"
               },
               "max": {
                "type": "integer"
               }
              }
             },
             "drive_time": {
              "type": "string"
             },
             "page": {
              "type": "string",
              "format": "uri"
             },
             "classes": {
              "type": "object",
              "additionalProperties": {
               "type": "object",
               "properties": {
                "low": {
                 "type": "integer"
                },
                "high": {
                 "type": "integer"
                }
               },
               "required": [
                "low",
                "high"
               ]
              }
             }
            }
           }
          },
          "hourly": {
           "type": "array",
           "items": {
            "type": "object"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/packages.json": {
   "get": {
    "operationId": "getPackages",
    "summary": "Round-trip packages with fixed all-in prices and pay/book URLs",
    "responses": {
     "200": {
      "description": "Packages",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "packages": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "slug": {
              "type": "string"
             },
             "title": {
              "type": "string"
             },
             "destination": {
              "type": "string"
             },
             "km_each_way": {
              "type": "number"
             },
             "prices": {
              "type": "object",
              "additionalProperties": {
               "type": "integer"
              }
             },
             "pay_urls": {
              "type": "object",
              "additionalProperties": {
               "type": "string",
               "format": "uri"
              }
             },
             "url": {
              "type": "string",
              "format": "uri"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/search.php": {
   "get": {
    "operationId": "searchSite",
    "summary": "Search airports, towns, venues, hotels, routes, packages and guides",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "section",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "First path segment, e.g. airports, cities, packages"
     },
     {
      "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 (traveller consent required, no payment)",
    "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)"
     }
    }
   }
  },
  "/.well-known/agent-card.json": {
   "get": {
    "operationId": "getAgentCard",
    "summary": "Agent card",
    "responses": {
     "200": {
      "description": "Agent card",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/llms.txt": {
   "get": {
    "operationId": "getLlmsTxt",
    "summary": "llms.txt summary for language models",
    "responses": {
     "200": {
      "description": "Plain text",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 },
 "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"
     },
     "service": {
      "type": "string",
      "enum": [
       "Airport transfer",
       "Round-trip package",
       "Hourly private chauffeur",
       "Wedding / prom / occasion",
       "Winery / Prince Edward County tour",
       "Concert / game / event night",
       "Corporate / city-to-city",
       "VIA Rail / GO station",
       "Private jet / FBO",
       "Cross-border / USA",
       "Other"
      ]
     },
     "package": {
      "type": "string",
      "description": "Round-trip package slug (see /api/packages.json)"
     },
     "pickup": {
      "type": "string",
      "description": "Full address, hotel, venue, or airport code + terminal"
     },
     "dropoff": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date",
      "description": "Local pickup date (YYYY-MM-DD)"
     },
     "time": {
      "type": "string",
      "description": "Local pickup time HH:MM (America/Toronto). For arrivals use the scheduled landing time."
     },
     "flight": {
      "type": "string"
     },
     "passengers": {
      "type": "integer",
      "minimum": 1
     },
     "bags": {
      "type": "integer",
      "minimum": 0
     },
     "vehicle": {
      "type": "string",
      "enum": [
       "Business sedan",
       "Business SUV",
       "First-class sedan",
       "Executive SUV",
       "Luxury minivan",
       "Executive Sprinter",
       "Jet Sprinter (VIP)",
       "Stretch sedan (partner)",
       "Stretch SUV limousine (partner)",
       "Party bus (partner)",
       "Rolls-Royce / Maybach (partner)",
       "Not sure"
      ]
     },
     "return": {
      "type": "string",
      "description": "Return trip details, if any"
     },
     "notes": {
      "type": "string",
      "description": "Child seats, accessibility, meet and greet sign name, stops"
     },
     "agent": {
      "type": "string",
      "description": "Name of the AI agent or 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": "CBL-K3F9Q2X"
     },
     "status": {
      "type": "string",
      "example": "received"
     },
     "next": {
      "type": "string"
     },
     "instant_booking_for_the_traveller": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   }
  }
 }
}