{
 "openapi": "3.1.0",
 "info": {
  "title": "Elite Green Transportation — availability and booking requests",
  "version": "1.0.0",
  "description": "Live car availability, flat event prices and booking requests for Elite Green Transportation (San Diego, California TCP #0046494-A). Built for AI agents (Meta Muse, OpenAI Dots, Claude Duet, Grok and any agent that can make HTTP calls or fill a web form). A booking request is NOT a confirmed booking: EGT calls or texts the rider to confirm. Gratuity is at the rider's discretion.",
  "contact": {
   "name": "Elite Green Transportation",
   "url": "https://elitegreentransportation.com",
   "email": "support@elitegreentransportation.com"
  }
 },
 "servers": [
  {
   "url": "https://elitegreentransportation.com"
  }
 ],
 "paths": {
  "/api/availability": {
   "get": {
    "operationId": "getAvailability",
    "summary": "Live car availability (and event prices with ?team=)",
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date"
      },
      "description": "One date, YYYY-MM-DD"
     },
     {
      "name": "team",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "lakers",
        "la-kings",
        "ducks",
        "clippers"
       ]
      },
      "description": "Every remaining home game with live car status and flat round-trip prices"
     }
    ],
    "responses": {
     "200": {
      "description": "Availability. cars: i7 = BMW i7 (up to 2), riv = Rivian R1S (up to 4), iql = Escalade (up to 5). Status Available or Booked."
     }
    }
   }
  },
  "/api/events.json": {
   "get": {
    "operationId": "listEvents",
    "summary": "Static catalog of every LA team home game EGT serves, with prices, venue, drop-off point and page URL",
    "responses": {
     "200": {
      "description": "Event catalog"
     }
    }
   }
  },
  "/api/quote": {
   "get": {
    "operationId": "getAirportQuote",
    "summary": "Exact flat airport transfer rate",
    "parameters": [
     {
      "name": "airport",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "SAN",
        "LAX",
        "SNA",
        "ONT",
        "BUR",
        "PSP",
        "CBX",
        "CRQ"
       ]
      }
     },
     {
      "name": "area",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "vehicle",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "i7",
        "riv",
        "iql"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Quote"
     }
    }
   }
  },
  "/api/book": {
   "post": {
    "operationId": "requestBooking",
    "summary": "Send a booking request on the rider's behalf (EGT confirms by phone or text)",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "event_date",
         "name",
         "phone"
        ],
        "properties": {
         "event_date": {
          "type": "string",
          "format": "date"
         },
         "event": {
          "type": "string",
          "description": "e.g. 'Los Angeles Lakers vs Boston Celtics' or 'SAN airport pickup'"
         },
         "event_url": {
          "type": "string"
         },
         "name": {
          "type": "string",
          "description": "Rider's name"
         },
         "phone": {
          "type": "string",
          "description": "Rider's mobile with area code; EGT confirms here"
         },
         "email": {
          "type": "string"
         },
         "passengers": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
         },
         "pickup": {
          "type": "string",
          "description": "Pickup address, neighborhood, city or hotel"
         },
         "vehicle": {
          "type": "string",
          "enum": [
           "i7",
           "riv",
           "iql",
           "any"
          ]
         },
         "notes": {
          "type": "string"
         },
         "agent": {
          "type": "string",
          "description": "Name of the agent or app sending the request"
         }
        }
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Request received; booked=false until EGT confirms with the rider"
     },
     "400": {
      "description": "Missing or invalid fields"
     }
    }
   }
  }
 }
}