{
    "ok": true,
    "data": {
        "name": "hotel.team API",
        "description": "hotel.team makes your AI agent a hotel booking agent. Wholesale hotel prices, worldwide, always cheaper than Booking.com. Set up in 15 seconds: just point your Grok Bot (or dot) to hotel.team.",
        "auth": "Every endpoint except registration needs your hotel.team key: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\". Get a key via https://hotel.team/bot",
        "format": "JSON, UTF-8. Success: {\"ok\":true,\"data\":...}. Error: {\"ok\":false,\"error\":{\"code\":\"...\",\"message\":\"...\"}}. Dates as YYYY-MM-DD.",
        "details": "Add ?description to any endpoint URL for its full description (parameters, response, example). No key needed for that.",
        "endpoints": [
            {
                "name": "register",
                "method": "POST",
                "url": "https://hotel.team/api/register.php",
                "auth": "none",
                "description": "Start here, no key needed: send first_name, last_name, email and (recommended) phone; we email a hotel.team key to that address (a new key if it was already registered).",
                "details": "https://hotel.team/api/register.php?description"
            },
            {
                "name": "me",
                "method": "GET",
                "url": "https://hotel.team/api/me.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Your account: the name, email and phone hotel.team has stored for your hotel.team key (key shown masked), plus how often it was used.",
                "details": "https://hotel.team/api/me.php?description"
            },
            {
                "name": "search",
                "method": "GET,POST",
                "url": "https://hotel.team/api/search.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Search hotels with availability and wholesale prices around a destination for given dates and rooms (persons per room): the 25 nearest (or cheapest), one offer per hotel.",
                "details": "https://hotel.team/api/search.php?description"
            },
            {
                "name": "hotel",
                "method": "GET,POST",
                "url": "https://hotel.team/api/hotel.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "One hotel by hotel_id (from search): description, photos, facility ids, policies and its room types; with arrival and departure each room lists its available rates at wholesale prices, cheapest first.",
                "details": "https://hotel.team/api/hotel.php?description"
            },
            {
                "name": "prebook",
                "method": "POST",
                "url": "https://hotel.team/api/prebook.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Lock one offer (offer_id from hotel or search) at its final price and get a checkout_url where the customer pays by card. Can take up to 10 seconds: wait for the answer.",
                "details": "https://hotel.team/api/prebook.php?description"
            },
            {
                "name": "bookings",
                "method": "GET",
                "url": "https://hotel.team/api/bookings.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "All bookings made with your hotel.team key, newest first: booking_id, status, hotel, dates, rooms, persons, price and free-cancellation deadline.",
                "details": "https://hotel.team/api/bookings.php?description"
            },
            {
                "name": "bookingdetails",
                "method": "GET",
                "url": "https://hotel.team/api/bookingdetails.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Everything about one booking (booking_id from bookings): status, hotel contact and check-in times, rooms, guests, breakfast yes/no, price paid, tourist tax to pay at the hotel, cancellation terms.",
                "details": "https://hotel.team/api/bookingdetails.php?description"
            },
            {
                "name": "languages",
                "method": "GET",
                "url": "https://hotel.team/api/languages.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "List of languages hotel content is available in (ISO 639-1 code + English name).",
                "details": "https://hotel.team/api/languages.php?description"
            },
            {
                "name": "currencies",
                "method": "GET",
                "url": "https://hotel.team/api/currencies.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "List of currencies hotel.team can show prices in (ISO 4217 code, English name, countries using it).",
                "details": "https://hotel.team/api/currencies.php?description"
            },
            {
                "name": "facilities",
                "method": "GET",
                "url": "https://hotel.team/api/facilities.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Hotel facilities and room amenities (id + name), optionally filtered by type and translated into a language.",
                "details": "https://hotel.team/api/facilities.php?description"
            },
            {
                "name": "geocode",
                "method": "GET",
                "url": "https://hotel.team/api/tools/geocode.php",
                "auth": "hotel.team key required: header \"Authorization: Bearer <key>\" or \"X-API-Key: <key>\"",
                "description": "Latitude and longitude for a place name in free text (spelling mistakes are fine).",
                "details": "https://hotel.team/api/tools/geocode.php?description"
            }
        ],
        "links": {
            "website": "https://hotel.team/",
            "agent_instructions": "https://hotel.team/bot"
        }
    }
}
