Read and manage your Hostavi properties, calendar, reservations, guest messages, reviews and cleanings, and get webhooks when they change.
Access. Available on the Business plan while the subscription is active (not on Essentials, Pro or the trial). The account owner creates keys in Settings > API & webhooks (2-step verification required).
Permissions. Each key has a permission per area: properties (read only), calendar, reservations, guest_messages, reviews, cleanings. Each is read or write (write includes read); an area not given is refused with insufficient_permission.
Limits. 120 requests a minute per key. Bodies up to 100 KB. Lists come in pages of up to 100 with next_cursor.
Data. JSON with snake_case fields; dates as YYYY-MM-DD, within 10 years of today; times in UTC (ISO 8601); amounts in cents with their currency. Text can't hold control characters (notes may hold line breaks and tabs). A key only ever sees its account's own properties; anything else answers 404.
Writes go through the same rules as the app (channel sync, cleanings, door codes). Send an Idempotency-Key header to retry safely (a key whose first request died is free again after 10 minutes).
Base URL https://www.hostavi.app/api/v1 · Machine-readable description: openapi.json (OpenAPI 3.1, for code generators and AI agents) · Keys: Settings > API & webhooks
Lists come in pages: pass the answer's next_cursor as cursor until it's null.
Connect an AI agent (MCP)
Claude Code, Cursor, Codex and any other MCP client can work with your Hostavi account through Hostavi's MCP server. Nothing to install: add the address with an API key. The agent sees one tool per endpoint below, limited to the key's permissions (a read-only key gets no tools that change anything). Changes go through the same rules as the API.
Give the agent its own key with only the permissions it needs, and keep an eye on what it does: replies and price changes reach guests and channels for real. Guest-written text reaches the agent as data; a good agent treats it as such, but review what it proposes before it acts.
Errors
Every error has the same shape, with a stable code to branch on:
{ "error": { "code": "insufficient_permission", "message": "This API key needs the reservations write permission." } }
Codes: invalid_api_key, insufficient_permission, plan_required, subscription_inactive, account_unavailable, rate_limited, not_found, invalid_request, conflict, payload_too_large, idempotency_key_reused, request_in_progress, internal_error, unavailable. A 5xx, a 429 or unavailable can be retried (with the same Idempotency-Key): those answers are never stored under it.
Endpoints
Properties
get/propertiesproperties: read
List your properties
Parameters
limit
integer · query
1-100, default 50. min 1, max 100
cursor
string · query
From the previous page's next_cursor.
200 A page of properties. { data: Property[], next_cursor: string or null }
Sets a day price on every night of the range (Price Parity's day overrides) and sends it to the connected channels. Fields left out keep each night's own value; null clears a stay restriction. Nights without any price need price.
Parameters
propertyId*
string (uuid) · path
Body
from*
string (date)
to*
string (date)
Inclusive.
price
integer
Minor units (cents) of the property's pricing currency. min 1
currency
string
Must be the property's pricing currency (its currency) if given.
min_stay
integer or null
min_stay_through
integer or null
max_stay
integer or null
stop_sell
boolean
closed_to_arrival
boolean
closed_to_departure
boolean
200 The nights of the range, after the change. { data: CalendarDay[] }
Reservations
get/reservationsreservations: read
List reservations and blocks
Sorted by check-in; with updated_since, by last change (to sync what changed).
Parameters
property_id
string (uuid) · query
Only this property.
status
"confirmed" | "blocked" | "cancelled" · query
Only this status.
check_in_from
string (date) · query
Check-in on or after.
check_in_to
string (date) · query
Check-in on or before.
updated_since
string (date-time) · query
Changed at or after (with a time zone).
limit
integer · query
1-100, default 50. min 1, max 100
cursor
string · query
From the previous page's next_cursor.
200 A page of reservations. { data: Reservation[], next_cursor: string or null }
post/reservationsreservations: write
Create a manual reservation or block
Like adding one in the Calendar: closes the nights on the connected channels, creates the cleaning and the door code where set up.
Body
property_id*
string (uuid)
type
"reservation" | "block"
Default reservation.
check_in*
string (date)
check_out*
string (date)
guest_name
string or null
Required for a reservation; not allowed for a block.
Channel bookings are cancelled on the channel; direct bookings in Hostavi, because a refund is involved (both 409). Cancelling one already cancelled answers it unchanged. Still possible while the property is being removed.
Parameters
reservationId*
string (uuid) · path
200 The cancelled reservation. { data: Reservation }
For connected tools: a guest registration tool saves the guest's online check-in link (kind checkin), a deposit tool its deposit link (kind deposit). One per booking and kind; saving again replaces it. Shown to the host on the booking and used by the {{checkin_link}} / {{deposit_link}} placeholders in automated messages. Refused for blocked dates and anonymised bookings (409).
Sent through the channel, translated into the guest's language unless translate is false (like the app). Refused for anonymised conversations and inquiries (409). 30 replies a minute per account. 202 means the channel took it but Hostavi's copy arrives with the next sync.
Parameters
threadId*
string (uuid) · path
Body
body*
string
up to 2000 characters
translate
boolean
Default true.
201 The message as stored. { data: GuestMessage }
Reviews
get/reviewsreviews: read
List reviews
Parameters
property_id
string (uuid) · query
Only this property.
updated_since
string (date-time) · query
Changed at or after.
limit
integer · query
1-100, default 50. min 1, max 100
cursor
string · query
From the previous page's next_cursor.
200 A page of reviews. A review the guest never wrote, once its window has closed, is left out, so a page can hold fewer than limit: follow next_cursor. { data: Review[], next_cursor: string or null }
post/reviews/{reviewId}/replyreviews: write
Reply to a review
Posted on the channel, where it's public. A review can be answered once (409 after).
200 A page of cleanings. { data: Cleaning[], next_cursor: string or null }
get/cleanings/{cleaningId}cleanings: read
Get a cleaning
Parameters
cleaningId*
string (uuid) · path
200 The cleaning. { data: Cleaning }
patch/cleanings/{cleaningId}cleanings: write
Change a cleaning
Only while it's still to do (scheduled). The assignee must be an active cleaner or co-host on the property (see /team); the people concerned are told, like in Turnover.
Parameters
cleaningId*
string (uuid) · path
Body
assigned_user_id
string (uuid) or null
date
string (date)
time
string or null
HH:MM
notes
string or null
200 The cleaning after the change. { data: Cleaning }
Refused when its stay was cancelled or the booking already has an open cleaning (409).
Parameters
cleaningId*
string (uuid) · path
200 The restored cleaning. { data: Cleaning }
get/teamcleanings: read
Who can be assigned cleanings
Active cleaners and co-hosts of a property. No emails.
Parameters
property_id*
string (uuid) · query
The property.
200 The team. { data: TeamMember[] }
Objects
Money
amount*
integer
Minor units (cents).
currency*
string
ISO 4217, upper case.
Property
id*
string (uuid)
name*
string
address*
string or null
location*
{ latitude: number, longitude: number } or null
max_guests*
integer or null
bedrooms*
integer or null
bathrooms*
number or null
check_in_time*
string or null
Local time HH:MM at the property.
check_out_time*
string or null
Local time HH:MM at the property.
parent_property_id*
string or null
For a room: the id of the whole place it is part of. A booking of the whole place closes its rooms, and a booking of a room closes the whole place.
currency*
string
ISO 4217, upper case. What the property's prices are in, on its calendar and on the channels. Set when the property is created; a room has its place's.
{ id: string (uuid), name: string or null } or null
notes*
string or null
completed_at*
string (date-time) or null
created_at*
string (date-time)
TeamMember
id*
string (uuid)
name*
string or null
role*
"cleaner" | "co_host"
Webhooks
Add up to 5 https addresses in Settings > API & webhooks and choose their events. Hostavi sends a POST with { id, type, created_at, data }, where data is the object as the API returns it. Answer 2xx within 10 seconds; anything else is retried for about 24 hours, and an address failing for 3 days is switched off (you get an email). The same event can arrive twice: use webhook-id to ignore repeats.
Requests are signed with the Standard Webhooks scheme: check the signature with any Standard Webhooks library, or by hand:
import { createHmac, timingSafeEqual } from "crypto";
// secret: the address's signing secret (whsec_…); rawBody: the request body as received.
function isFromHostavi(rawBody, headers, secret) {
const id = headers["webhook-id"], timestamp = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false; // too old
const key = Buffer.from(secret.slice("whsec_".length), "base64");
const expected = createHmac("sha256", key).update(`${id}.${timestamp}.${rawBody}`).digest();
return headers["webhook-signature"].split(" ").some((entry) => {
const given = Buffer.from(entry.split(",")[1] ?? "", "base64");
return given.length === expected.length && timingSafeEqual(given, expected);
});
}
reservation.created
Reservation
A reservation or block was added, from any channel, the app or the API.
reservation.updated
Reservation
A reservation's dates, guest, guests, notes or price changed, or a connected tool saved, changed or removed one of its links (its updated_at moves too).
reservation.cancelled
Reservation
A reservation was cancelled.
message.received
GuestMessage + { property_id: string (uuid) }
A guest sent a message.
review.received
Review
A guest left a review.
review.updated
Review
A review was completed (score first, text later) or answered.
cleaning.created
Cleaning
A cleaning was created.
cleaning.updated
Cleaning
A cleaning was assigned, moved, completed or cancelled.
calendar.updated
{ property_id, from, to, all_dates }
Prices or restrictions changed; one notice per batch of changes.