{
 "openapi": "3.1.0",
 "info": {
  "title": "BharatEvent public data",
  "version": "1.0.0",
  "description": "Read-only public data about BharatEvent, an event platform for Pune and Pimpri-Chinchwad: typical event prices and a fact sheet. To get quotes, send people to https://bharatevent.com/plan-an-event . With the person's consent, AI agents can also request free quotes from verified vendors (POST /api/booking/send/enquiry) and send an existing quote to be checked (POST /api/quote-check)."
 },
 "servers": [
  {
   "url": "https://bharatevent.com"
  }
 ],
 "paths": {
  "/prices.json": {
   "get": {
    "operationId": "getPrices",
    "summary": "Typical price ranges for every event service",
    "responses": {
     "200": {
      "description": "Prices by service, in INR, before GST"
     }
    }
   }
  },
  "/facts.json": {
   "get": {
    "operationId": "getFacts",
    "summary": "Fact sheet: who BharatEvent is, contact, how vendors are checked",
    "responses": {
     "200": {
      "description": "Facts"
     }
    }
   }
  },
  "/api/booking/send/enquiry": {
   "post": {
    "operationId": "requestQuotes",
    "summary": "Request free quotes for an event",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string",
          "maxLength": 120
         },
         "phone": {
          "type": "string",
          "description": "10-digit Indian mobile number"
         },
         "event_type": {
          "type": "string",
          "examples": [
           "Wedding",
           "Birthday party",
           "Corporate event"
          ]
         },
         "category": {
          "type": "string",
          "description": "Service slug, e.g. caterers, banquet-halls, wedding-planners"
         },
         "city": {
          "type": "string",
          "examples": [
           "Pune",
           "Pimpri-Chinchwad"
          ]
         },
         "area": {
          "type": "string"
         },
         "event_date": {
          "type": "string",
          "format": "date"
         },
         "guests": {
          "type": "integer"
         },
         "budget": {
          "type": "integer",
          "description": "Total budget in INR"
         },
         "message": {
          "type": "string"
         },
         "intent": {
          "type": "string",
          "enum": [
           "marketplace",
           "managed"
          ]
         }
        },
        "required": [
         "name",
         "phone"
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Request received; returns lead_id"
     },
     "400": {
      "description": "Validation error with a plain-English message"
     }
    }
   }
  },
  "/api/booking/send/details": {
   "post": {
    "operationId": "addQuoteDetails",
    "summary": "Add details to a request made in the last 3 hours",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "lead_id": {
          "type": "integer"
         },
         "phone": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "event_date": {
          "type": "string",
          "format": "date"
         },
         "city": {
          "type": "string"
         },
         "area": {
          "type": "string"
         },
         "guests": {
          "type": "integer"
         },
         "budget": {
          "type": "integer"
         }
        },
        "required": [
         "lead_id",
         "phone"
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Details added"
     },
     "400": {
      "description": "Not allowed"
     }
    }
   }
  },
  "/api/quote-check": {
   "post": {
    "operationId": "checkQuote",
    "summary": "Send an existing quote (PDF or image, up to 5 MB) to be checked against Pune prices",
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "phone": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "category": {
          "type": "string"
         },
         "quote": {
          "type": "string",
          "format": "binary"
         }
        },
        "required": [
         "phone",
         "quote"
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Received"
     },
     "400": {
      "description": "Validation error"
     }
    }
   }
  }
 }
}