{
  "openapi": "3.1.1",
  "info": {
    "title": "Oasis Property Collective guest inquiries",
    "version": "1.0.0",
    "description": "Public facts about two Steamboat Springs stays and an explicitly authorized inquiry action.",
    "contact": {
      "name": "Brooke at Oasis Property Collective",
      "email": "brookewells10@oasispropertycollective.com"
    }
  },
  "servers": [
    {
      "url": "https://oasispropertycollective.com"
    }
  ],
  "paths": {
    "/api/catalog.json": {
      "get": {
        "operationId": "readStayCatalog",
        "summary": "Read property facts and regional travel guides",
        "responses": {
          "200": {
            "description": "Shared public inventory descriptions. The host confirms dates and prices.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                }
              }
            }
          }
        }
      }
    },
    "/api/pricing/estimate": {
      "get": {
        "operationId": "estimateDirectStay",
        "summary": "Check a dated direct stay estimate in USD",
        "description": "Read only. Display totalCents for the entire stay including mandatory fees and selected pets, before government taxes. Brooke confirms the final quote. Missing rates or unavailable dates require an inquiry.",
        "parameters": [
          {
            "name": "property",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "meadowlark-oasis",
                "spring-hill-oasis"
              ]
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "pets",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Date-specific, nonbinding estimate. Maximum 31 nights.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "totalCents",
                    "currency",
                    "validUntil"
                  ],
                  "properties": {
                    "totalCents": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "currency": {
                      "const": "USD"
                    },
                    "validUntil": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid dates or home."
          },
          "409": {
            "description": "No usable rate or available stay."
          },
          "429": {
            "description": "Too many requests."
          },
          "503": {
            "description": "Ask Brooke to check dates and the full price."
          }
        }
      }
    },
    "/api/inquiries": {
      "post": {
        "operationId": "submitStayInquiry",
        "summary": "Send a traveler-authorized inquiry to Brooke",
        "description": "Submit only after the traveler explicitly authorizes sending their details to Oasis Property Collective for this inquiry. A receipt acknowledges the inquiry. The host confirms dates and sends the guest a quote before payment.",
        "x-openai-isConsequential": true,
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Reuse the same random opaque key and identical body for delivery retries. A UUID is suitable.",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[ -~]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON body up to 16 KiB.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Inquiry"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Existing inquiry receipt for the same normalized request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            }
          },
          "201": {
            "description": "Inquiry received for host review.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed. Correct the indicated input with the traveler.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "An idempotency key was reused for a changed submission. Confirm the change with the traveler before submitting a new request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds 16 KiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Send application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The service is unavailable. Offer the contact page to the traveler.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Catalog": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "const": "1.0"
          },
          "operator": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "url",
              "contactUrl",
              "email"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "contactUrl": {
                "type": "string",
                "format": "uri"
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            }
          },
          "properties": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "slug",
                "name",
                "url",
                "summary",
                "petPolicy",
                "directStay"
              ],
              "properties": {
                "slug": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                },
                "location": {
                  "type": "string",
                  "minLength": 1
                },
                "accommodationType": {
                  "type": "string",
                  "minLength": 1
                },
                "maxGuests": {
                  "type": "integer",
                  "minimum": 1
                },
                "bedrooms": {
                  "type": "integer",
                  "minimum": 1
                },
                "beds": {
                  "type": "integer",
                  "minimum": 1
                },
                "bathrooms": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "airbnb": {
                  "type": "string",
                  "format": "uri"
                },
                "petPolicy": {
                  "type": "string",
                  "minLength": 1
                },
                "directStay": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "type": "string",
                  "minLength": 1
                },
                "gallery": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "url",
                      "alt"
                    ],
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "alt": {
                        "type": "string"
                      }
                    }
                  }
                },
                "cityLicense": {
                  "type": "string",
                  "minLength": 1
                },
                "airbnbRegistration": {
                  "type": "string",
                  "minLength": 1
                },
                "requestUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "bookingEngine": {
                  "type": "string",
                  "format": "uri"
                },
                "availability": {
                  "const": "host_confirmation_required"
                },
                "dateModified": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          },
          "guides": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title",
                "url",
                "summary",
                "sources"
              ],
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                },
                "season": {
                  "type": "string",
                  "minLength": 1
                },
                "category": {
                  "type": "string",
                  "minLength": 1
                },
                "readTime": {
                  "type": "string",
                  "minLength": 1
                },
                "markdown": {
                  "type": "string",
                  "format": "uri"
                },
                "sections": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "heading",
                      "body"
                    ],
                    "properties": {
                      "heading": {
                        "type": "string",
                        "minLength": 1
                      },
                      "body": {
                        "type": "string",
                        "minLength": 1
                      }
                    }
                  }
                },
                "image": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "url",
                    "alt"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "alt": {
                      "type": "string"
                    }
                  }
                },
                "dateModified": {
                  "type": "string",
                  "format": "date-time"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "url"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          },
          "inquiries": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "form",
              "endpoint",
              "openapi",
              "consent"
            ],
            "properties": {
              "form": {
                "type": "string",
                "format": "uri"
              },
              "endpoint": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "consent": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        "required": [
          "schemaVersion",
          "operator",
          "properties",
          "guides",
          "inquiries"
        ],
        "additionalProperties": false
      },
      "Inquiry": {
        "type": "object",
        "required": [
          "property",
          "name",
          "email",
          "checkIn",
          "checkOut",
          "guests",
          "consent",
          "agreement"
        ],
        "additionalProperties": false,
        "properties": {
          "property": {
            "type": "string",
            "enum": [
              "meadowlark-oasis",
              "spring-hill-oasis",
              "either"
            ],
            "description": "Use either if the traveler is open to both properties."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "email": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254,
            "format": "email",
            "description": "The email authorized by the traveler for the host to reply to."
          },
          "checkIn": {
            "type": "string",
            "format": "date",
            "description": "Current or future date in America/Denver."
          },
          "checkOut": {
            "type": "string",
            "format": "date",
            "description": "Later than checkIn, within 366 nights."
          },
          "guests": {
            "type": "integer",
            "minimum": 1,
            "maximum": 6
          },
          "pets": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2,
            "description": "Number requested, up to 2. The host confirms which pets and fees apply."
          },
          "message": {
            "type": "string",
            "maxLength": 2000,
            "description": "Optional traveler requirements, including total budget and access needs. Omit financial account details and ID numbers."
          },
          "consent": {
            "type": "boolean",
            "const": true,
            "description": "Submit only after the traveler explicitly authorizes sending their details to Oasis Property Collective for this inquiry. A receipt acknowledges the inquiry. The host confirms dates and sends the guest a quote before payment."
          },
          "agreement": {
            "type": "string",
            "const": "2026-11-23b",
            "description": "Send only after the traveler has read and accepted the Short-Term Residential Lease Agreement at /rental-agreement/ on this site."
          },
          "source": {
            "type": "string",
            "enum": [
              "agent",
              "web"
            ],
            "default": "web",
            "description": "Automated clients should send agent."
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "property": {
                  "const": "spring-hill-oasis"
                }
              },
              "required": [
                "property"
              ]
            },
            "then": {
              "properties": {
                "guests": {
                  "maximum": 2
                }
              }
            }
          }
        ]
      },
      "Receipt": {
        "type": "object",
        "required": [
          "id",
          "status",
          "duplicate"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "const": "received"
          },
          "duplicate": {
            "type": "boolean"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "minLength": 1
          },
          "contact": {
            "type": "string",
            "format": "email"
          }
        }
      }
    }
  }
}
