{"openapi":"3.1.0","info":{"title":"Booking Demand (BYOK) API","version":"0.1.0","description":"Booking Demand (BYOK) lets an AI assistant read your own Booking Demand data through the Booking Demand API with a key you supply (Demand API token). Read-only: 9 tools (search_accommodations_in_city, search_accommodations_near_point, check_accommodation_availability, get_accommodation_details, list_accommodations_in_city, get_accommodation_reviews, get_accommodation_review_scores, list_cities,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-booking-demand.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-booking-demand/docs"},"termsOfService":"https://connectorbay.com/byok-booking-demand/terms"},"servers":[{"url":"https://byok-booking-demand.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-booking-demand/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_accommodations_in_city":{"post":{"operationId":"search_accommodations_in_city","summary":"Search Booking.com accommodations in a city for given dates and guests, with the cheapest available price per property. ","description":"Search Booking.com accommodations in a city for given dates and guests, with the cheapest available price per property. Searching is free; nothing is booked. Use for \"What hotels are available in city 20015107 from 10 to 12 December for two adults\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"city":{"description":"Booking.com city id (an integer, for example from accommodation details location.city).","title":"City","type":"integer"},"checkin":{"description":"Check-in date YYYY-MM-DD, at most 500 days ahead.","maxLength":10,"title":"Checkin","type":"string"},"checkout":{"description":"Check-out date YYYY-MM-DD, after the check-in date.","maxLength":10,"title":"Checkout","type":"string"},"adults":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"default":2,"description":"Number of adults.","title":"Adults"},"rooms":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of rooms.","title":"Rooms"},"booker_country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":"us","description":"Two-letter lowercase country code of the traveller, used for price and tax display, for example 'us'.","title":"Booker Country"},"currency":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":"USD","description":"Three-letter currency code for prices, for example USD, EUR.","title":"Currency"},"rows":{"anyOf":[{"maximum":100,"minimum":10,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return: a multiple of 10 from 10 to 100.","title":"Rows"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the metadata.next_page value of the previous answer.","title":"Page"}},"required":["city","checkin","checkout"],"title":"search_accommodations_in_cityArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_accommodations_near_point":{"post":{"operationId":"search_accommodations_near_point","summary":"Search Booking.com accommodations within a radius of a latitude and longitude for given dates and guests, with the cheap","description":"Search Booking.com accommodations within a radius of a latitude and longitude for given dates and guests, with the cheapest price per property. Use for \"Find hotels within 3 km of the Eiffel Tower for 10 to 12 December\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"latitude":{"description":"Latitude of the centre point.","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Longitude of the centre point.","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"radius":{"description":"Search radius in kilometres.","maximum":100,"minimum":0.1,"title":"Radius","type":"number"},"checkin":{"description":"Check-in date YYYY-MM-DD, at most 500 days ahead.","maxLength":10,"title":"Checkin","type":"string"},"checkout":{"description":"Check-out date YYYY-MM-DD, after the check-in date.","maxLength":10,"title":"Checkout","type":"string"},"adults":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"default":2,"description":"Number of adults.","title":"Adults"},"rooms":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of rooms.","title":"Rooms"},"booker_country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":"us","description":"Two-letter lowercase country code of the traveller, used for price and tax display, for example 'us'.","title":"Booker Country"},"currency":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":"USD","description":"Three-letter currency code for prices, for example USD, EUR.","title":"Currency"},"rows":{"anyOf":[{"maximum":100,"minimum":10,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return: a multiple of 10 from 10 to 100.","title":"Rows"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the metadata.next_page value of the previous answer.","title":"Page"}},"required":["latitude","longitude","radius","checkin","checkout"],"title":"search_accommodations_near_pointArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/check_accommodation_availability":{"post":{"operationId":"check_accommodation_availability","summary":"Check the rooms and rates of one accommodation for given dates and guests, with prices, cancellation policy, meal plan a","description":"Check the rooms and rates of one accommodation for given dates and guests, with prices, cancellation policy, meal plan and rooms left. Use for \"Is accommodation 10004 available from 10 to 12 December for two adults, and what are the rates\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"accommodation_id":{"description":"Booking.com accommodation id (an integer from a search).","minimum":1,"title":"Accommodation Id","type":"integer"},"checkin":{"description":"Check-in date YYYY-MM-DD, at most 500 days ahead.","maxLength":10,"title":"Checkin","type":"string"},"checkout":{"description":"Check-out date YYYY-MM-DD, after the check-in date.","maxLength":10,"title":"Checkout","type":"string"},"adults":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"default":2,"description":"Number of adults.","title":"Adults"},"rooms":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Number of rooms.","title":"Rooms"},"booker_country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":"us","description":"Two-letter lowercase country code of the traveller, used for price and tax display, for example 'us'.","title":"Booker Country"},"currency":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":"USD","description":"Three-letter currency code for prices, for example USD, EUR.","title":"Currency"}},"required":["accommodation_id","checkin","checkout"],"title":"check_accommodation_availabilityArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_accommodation_details":{"post":{"operationId":"get_accommodation_details","summary":"Get property details for one accommodation: name, description, location and coordinates, star rating, review score, chec","description":"Get property details for one accommodation: name, description, location and coordinates, star rating, review score, check-in and check-out times, number of rooms, languages and URL. Use for \"Give me the details of Booking.com accommodation 10004\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"accommodation_id":{"description":"Booking.com accommodation id (an integer from a search).","minimum":1,"title":"Accommodation Id","type":"integer"}},"required":["accommodation_id"],"title":"get_accommodation_detailsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_accommodations_in_city":{"post":{"operationId":"list_accommodations_in_city","summary":"List accommodation properties of a city with name, location, rating, review score, price category and URL (property deta","description":"List accommodation properties of a city with name, location, rating, review score, price category and URL (property details, no prices). Use for \"List the properties Booking.com has in city -2140479\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"city":{"description":"Booking.com city id (an integer).","title":"City","type":"integer"},"rows":{"anyOf":[{"maximum":100,"minimum":10,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return: a multiple of 10 from 10 to 100.","title":"Rows"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the metadata.next_page value of the previous answer.","title":"Page"}},"required":["city"],"title":"list_accommodations_in_cityArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_accommodation_reviews":{"post":{"operationId":"get_accommodation_reviews","summary":"List guest reviews of one accommodation with date, score, summary, positive and negative text, reviewer country and trav","description":"List guest reviews of one accommodation with date, score, summary, positive and negative text, reviewer country and travel purpose. Use for \"What do guests say about accommodation 10004\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"accommodation_id":{"description":"Booking.com accommodation id (an integer from a search).","minimum":1,"title":"Accommodation Id","type":"integer"},"rows":{"anyOf":[{"maximum":100,"minimum":10,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return: a multiple of 10 from 10 to 100.","title":"Rows"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the metadata.next_page value of the previous answer.","title":"Page"}},"required":["accommodation_id"],"title":"get_accommodation_reviewsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_accommodation_review_scores":{"post":{"operationId":"get_accommodation_review_scores","summary":"Get the review score and number of reviews of one or more accommodations (give one id). Use for \"What is the review scor","description":"Get the review score and number of reviews of one or more accommodations (give one id). Use for \"What is the review score of accommodation 10004\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"accommodation_id":{"description":"Booking.com accommodation id (an integer from a search).","minimum":1,"title":"Accommodation Id","type":"integer"}},"required":["accommodation_id"],"title":"get_accommodation_review_scoresArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_cities":{"post":{"operationId":"list_cities","summary":"List Booking.com cities of a country with id and coordinates, to use as the city id in searches. Use for \"Which city ids","description":"List Booking.com cities of a country with id and coordinates, to use as the city id in searches. Use for \"Which city ids does Booking.com use in Portugal\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country":{"description":"Two-letter lowercase country code, for example 'pt'.","maxLength":2,"title":"Country","type":"string"},"rows":{"anyOf":[{"maximum":100,"minimum":10,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return: a multiple of 10 from 10 to 100.","title":"Rows"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Pagination token: the metadata.next_page value of the previous answer.","title":"Page"}},"required":["country"],"title":"list_citiesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_accommodation_constants":{"post":{"operationId":"get_accommodation_constants","summary":"Look up one reference table: accommodation types, facilities, themes, bed types, room types, charge types, facility type","description":"Look up one reference table: accommodation types, facilities, themes, bed types, room types, charge types, facility types, room facilities or review score bands. Use for \"What accommodation types does Booking.com define\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"section":{"description":"Which table to return.","enum":["accommodation_facilities","accommodation_themes","accommodation_types","bed_types","charge_types","facility_types","review_scores","room_facilities","room_types"],"title":"Section","type":"string"}},"required":["section"],"title":"get_accommodation_constantsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}