{
  "openapi": "3.1.0",
  "info": {
    "title": "AUMARA Public Guest API",
    "version": "2.0.0",
    "description": "AUMARA public discovery, live Beds24 prices, signed accommodation estimates and private reservation enquiries. Request receipts do not block inventory, create supplier reservations or charge payments. Provider costs and agent identity remain explicitly qualified in telemetry."
  },
  "servers": [
    {
      "url": "https://www.aumara.me"
    }
  ],
  "paths": {
    "/api/partners/program": {
      "get": {
        "operationId": "getAumaraPartnerProgram",
        "summary": "Read partner enrolment and the 7–10% shared benefit budget",
        "description": "Public programme information and contact links. Commission and any agreed guest discount share one budget. Partner approval, attribution, payment and completed stays require verification by AUMARA. No reservation, discount or commission is created by this endpoint.",
        "responses": {
          "200": {
            "description": "Public partner programme, eligibility, shared budget and contacts"
          }
        }
      }
    },
    "/api/guest-info": {
      "get": {
        "operationId": "getAumaraGuestInfo",
        "summary": "Get public AUMARA guest information",
        "responses": {
          "200": {
            "description": "Public AUMARA property and direct-booking information"
          }
        },
        "x-payment-info": {
          "authMode": "human-checkout-required",
          "agent_execution": false,
          "intent": "human-checkout",
          "method": "human-beds24",
          "amount": null,
          "currency": "EUR",
          "description": "Reservation payment completes only in the human Beds24/Booking UI. Agents never create, hold, or charge. Use checkout_url to hand off to a human.",
          "checkout_url": "https://beds24.com/booking2.php?propid=324882",
          "protocols": [
            {
              "human_checkout": {
                "provider": "Beds24",
                "url": "https://beds24.com/booking2.php?propid=324882",
                "note": "Human-mediated Beds24 checkout only. No agent auto-charge rails."
              }
            }
          ]
        }
      }
    },
    "/api/availability": {
      "get": {
        "operationId": "getAumaraAvailability",
        "summary": "Get live AUMARA availability or compare nearby stay lengths",
        "description": "Uses the public Beds24 availability source. mode=quote returns exact-date live inventory and published totals. mode=compare checks a range of nearby stay lengths and identifies the strongest currently published nightly value. Read-only.",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "quote",
                "compare"
              ],
              "default": "quote"
            }
          },
          {
            "name": "checkIn",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "checkOut",
            "in": "query",
            "required": false,
            "description": "Required when mode=quote",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "adults",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 2
            }
          },
          {
            "name": "children",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20,
              "default": 0
            }
          },
          {
            "name": "minNights",
            "in": "query",
            "description": "Used when mode=compare",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 14,
              "default": 2
            }
          },
          {
            "name": "maxNights",
            "in": "query",
            "description": "Used when mode=compare",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 14,
              "default": 6
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live Beds24 availability or stay-length comparison",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid dates or guest counts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "human-checkout-required",
          "agent_execution": false,
          "intent": "human-checkout",
          "method": "human-beds24",
          "amount": null,
          "currency": "EUR",
          "description": "Reservation payment completes only in the human Beds24/Booking UI. Agents never create, hold, or charge. Use checkout_url to hand off to a human.",
          "checkout_url": "https://beds24.com/booking2.php?propid=324882",
          "protocols": [
            {
              "human_checkout": {
                "provider": "Beds24",
                "url": "https://beds24.com/booking2.php?propid=324882",
                "note": "Human-mediated Beds24 checkout only. No agent auto-charge rails."
              }
            }
          ]
        }
      }
    },
    "/api/agent/availability": {
      "get": {
        "operationId": "check_workation_availability",
        "summary": "Live AUMARA workation availability",
        "description": "Check exact dates and published Beds24 prices for the six real AUMARA houses. Event space requires a separate operator quote. No discount or hold is applied.",
        "parameters": [
          {
            "name": "check_in",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "check_out",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "guests_count",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 24
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "individual_dome",
                "b2b_full_buyout",
                "el_cid_event"
              ],
              "default": "individual_dome"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Live priced options or explicit unavailability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid dates, party or mode",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "502": {
            "description": "Supplier unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/b2b-quote": {
      "post": {
        "operationId": "calculate_b2b_retreat_quote",
        "summary": "Live B2B accommodation estimate",
        "description": "Allocate up to 24 guests across the six real houses using occupancy-specific live rates. Returns a signed 15-minute quote and PDF estimate. Addons and VAT breakdown remain unpriced until confirmed; this is not a tax invoice or inventory hold.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dates": {
                    "type": "object",
                    "properties": {
                      "check_in": {
                        "type": "string",
                        "format": "date"
                      },
                      "check_out": {
                        "type": "string",
                        "format": "date"
                      }
                    },
                    "required": [
                      "check_in",
                      "check_out"
                    ],
                    "additionalProperties": false
                  },
                  "team_size": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 24
                  },
                  "full_buyout": {
                    "type": "boolean",
                    "default": false
                  },
                  "addons": {
                    "type": "array",
                    "uniqueItems": true,
                    "maxItems": 4,
                    "items": {
                      "type": "string",
                      "enum": [
                        "airport_transfer",
                        "catering",
                        "el_cid_club_access",
                        "ai_academy_workshop"
                      ]
                    }
                  }
                },
                "required": [
                  "dates",
                  "team_size"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result or idempotent replay",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Expired quote or request conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Required service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/hold": {
      "post": {
        "operationId": "create_reservation_hold",
        "summary": "Register an AUMARA reservation request",
        "description": "Persist a private lead for an unexpired signed quote. Current effect is request-only: inventory_blocked=false, reservation_created=false, payment_url=null. The AUMARA team confirms booking and payment terms. Use only with the client's authorization to share their contact. A stable idempotency_key prevents duplicate requests.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quote_id": {
                    "type": "string",
                    "maxLength": 8192
                  },
                  "client_name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "company_name": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "contact_email_or_phone": {
                    "type": "string",
                    "maxLength": 254
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  }
                },
                "required": [
                  "quote_id",
                  "client_name",
                  "contact_email_or_phone",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result or idempotent replay",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "201": {
            "description": "Private enquiry registered; inventory_blocked=false, reservation_created=false, payment_url=null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Expired quote or request conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Request rate budget exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Required service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/ecosystem": {
      "get": {
        "operationId": "get_ecosystem_capabilities",
        "summary": "AUMARA and YourBest ecosystem",
        "responses": {
          "200": {
            "description": "Actual inventory, services, endpoints and booking effects",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/telemetry": {
      "get": {
        "operationId": "get_live_ai_telemetry",
        "summary": "Read live AI telemetry",
        "description": "Read public observed usage and external-agent request aggregates from YourBest Meter. Local snapshot timestamps, live event timestamps, unknown costs and unverified user-agent identity remain explicit.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "live",
                "proof"
              ],
              "default": "live"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Observed aggregates with source timestamps",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Telemetry unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/quote-pdf": {
      "get": {
        "operationId": "get_accommodation_estimate_pdf",
        "summary": "Download a signed, unexpired accommodation estimate",
        "description": "Not a tax invoice, payment request or booking confirmation. No contact data is present in the quote token or PDF.",
        "parameters": [
          {
            "name": "quote_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 8192
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF estimate",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid quote",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "409": {
            "description": "Quote expired",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-payment-info": {
    "authMode": "human-checkout-required",
    "agent_execution": false,
    "intent": "human-checkout",
    "method": "human-beds24",
    "amount": null,
    "currency": "EUR",
    "description": "Reservation payment completes only in the human Beds24/Booking UI. Agents never create, hold, or charge. Use checkout_url to hand off to a human.",
    "checkout_url": "https://beds24.com/booking2.php?propid=324882",
    "protocols": [
      {
        "human_checkout": {
          "provider": "Beds24",
          "url": "https://beds24.com/booking2.php?propid=324882",
          "note": "Human-mediated Beds24 checkout only. No agent auto-charge rails."
        }
      }
    ]
  },
  "x-service-info": {
    "categories": [
      "lodging",
      "hospitality",
      "guest-discovery"
    ],
    "docs": {
      "homepage": "https://www.aumara.me",
      "apiReference": "https://www.aumara.me/openapi.json",
      "llms": "https://www.aumara.me/llms.txt",
      "auth": "https://www.aumara.me/auth.md",
      "humanCheckout": "https://beds24.com/booking2.php?propid=324882"
    }
  }
}
