> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hosthub.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# What is the correct base URL and endpoint for fetching bookings/calendar data via the Hosthub API?

To fetch calendar events (bookings, availability) via the Hosthub API, use the following request:

``` GET ``https://app.hosthub.com/api/2019-03-01/rentals/{rentalId}/calendar-events ```

Authentication is done with an `Authorization` header set directly to your API key — do not use "Bearer" or any other prefix, just the raw API key. The endpoint `https://app.hosthub.com/api/v1/bookings` will return a 404 as it is not a valid endpoint. Full API documentation is available at https://www.hosthub.com/docs/api/, where you can also download the YAML file describing all endpoints and attributes.