{
  "openapi": "3.1.0",
  "info": {
    "title": "BlackCarLimousineService.ca API",
    "version": "2026.11.24",
    "description": "AI agents may send booking requests on behalf of a traveller: POST https://blackcarlimousineservice.ca/agent-api/booking.php (or use the MCP server https://blackcarlimousineservice.ca/agent-api/mcp.php). Requests are not confirmed until the team replies; agents never take payment."
  },
  "servers": [
    {
      "url": "https://blackcarlimousineservice.ca"
    }
  ],
  "paths": {
    "/agent-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 ride booking request to BlackCarLimousineService.ca",
        "description": "Only when the traveller explicitly asked to book. Returns a reference; the team confirms price and vehicle by email or phone. Nothing is charged.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "pickup",
                  "dropoff",
                  "date",
                  "time",
                  "consent"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "service": {
                    "type": "string",
                    "enum": [
                      "Airport transfer",
                      "Point to point",
                      "Hourly chauffeur",
                      "Corporate account",
                      "Wedding / event",
                      "Long distance / city to city"
                    ]
                  },
                  "pickup": {
                    "type": "string"
                  },
                  "dropoff": {
                    "type": "string"
                  },
                  "date": {
                    "type": "string",
                    "description": "Local pickup date YYYY-MM-DD"
                  },
                  "time": {
                    "type": "string",
                    "description": "Local pickup time HH:MM"
                  },
                  "hours": {
                    "type": "string"
                  },
                  "flight": {
                    "type": "string"
                  },
                  "passengers": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "bags": {
                    "type": "integer"
                  },
                  "vehicle": {
                    "type": "string",
                    "enum": [
                      "Executive sedan",
                      "Luxury sedan (S-Class)",
                      "SUV",
                      "Sprinter van",
                      "Stretch limousine",
                      "Party bus / coach"
                    ]
                  },
                  "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 to book"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request received",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "ref": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "next": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid fields"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  }
}
