Appearance
Calendar
GET/calendar
One row per listing per night in the date window, with the same state the Host Port calendar shows.
Parameters
| Parameter | Default | Notes |
|---|---|---|
from | 12 months ago | First night |
to | 6 months from today | The night after the last one you want |
format | json | or csv |
page, page_size | none | See Paging |
updated_since doesn't work here: a night has no "last changed" moment. Sending it is a 400.
Rows are ordered by listing, then night.
Count the rows before you ask
Ten listings for a year is 3,650 rows. Without paging, one call returns at most 20,000 rows, so a large portfolio over a long window needs paging or a shorter window.
Example
sh
curl -H "Authorization: Bearer hpk_your_key_here" \
"https://ntnzabbhtivotmfhwdnm.supabase.co/functions/v1/data-api/v1/calendar?from=2026-12-01&to=2026-12-08"json
[
{ "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-01", "state": "available", "booking_id": null },
{ "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-02", "state": "booked", "booking_id": "6f1c…" },
{ "property_id": "0d7e…", "property_name": "Beachside Cottage", "night": "2026-12-03", "state": "blocked", "booking_id": null }
]Columns
| Column | Type | Meaning |
|---|---|---|
property_id | uuid | The listing's id |
property_name | text | The listing's name |
night | date | The local calendar date of the night |
state | text | booked, blocked or available. See below |
booking_id | uuid | On a booked night, the booking. Only filled when the connection also has the Bookings dataset |
States
| State | Means |
|---|---|
booked | A live booking is staying that night |
blocked | Not bookable: your own block, a block mirrored from a linked listing or another room, a Booking.com closure, or a closed date |
available | Open to book |
