FOR DEVELOPERS & INTEGRATORS

Embed booking anywhere. We'll help you set it up.

Every Hosta property comes with a lightweight embed widget and a small public API: no account or API key needed for the basics. Not comfortable with code? Our team will set this up for you, free.

EMBED WIDGET

Add a live booking widget to any page

Paste this snippet where you want availability and booking to appear. It renders your property's live calendar and lets guests submit a booking request without leaving your site.

your-property-slug is the same slug your direct booking page uses.

HTML
<div data-hosta-property="your-property-slug"></div>
<script src="https://hostahq.co/widget.js" async></script>
GET /api/public/availability
GET /api/public/availability
  ?slug=your-property-slug
  &start=2026-08-01
  &end=2026-08-31
AVAILABILITY API

Read real-time availability

Returns approved bookings and manual blocks for the date range you ask for: no guest data included. CORS-enabled, so you can call it straight from a browser to build your own calendar view.

BOOKING SUBMIT API

Submit a booking request

Availability is re-validated on our end before anything is saved, so two guests can never book the same dates. Every submission lands as pending, ready for you to confirm. This is the exact same endpoint our own on-site widget uses.

firstName, email, phone and the dates are required; lastName, chefRequested and specialRequests are optional. Rate limited to 10 requests per 5 minutes per IP.

POST /api/public/book
// Request
{
  "slug": "your-property-slug",
  "firstName": "Maya",
  "lastName": "Kessler",
  "email": "maya@example.com",
  "phone": "+254700000000",
  "checkIn": "2026-08-12",
  "checkOut": "2026-08-16",
  "guests": 2
}

// Response 200
{ "success": true, "bookingCode": "HS-20260812-A1B2", "status": "pending" }
// 409 if the dates are taken · 429 if rate limited
GET /api/public/ics/:slug
https://hostahq.co/api/public/ics/
  your-property-slug
PUBLIC ICS FEED

Export your Hosta calendar out

A standard iCal feed of booked dates and blocks, with no guest details: paste this URL into Airbnb, Vrbo, Google Calendar, or any tool that accepts an iCal import.

HOST PROPERTIES API

List all of a host's properties

If you run several properties, one call returns them all: name, location, cover image and nightly rate - keyed by your host (organization) slug. Perfect for building a multi-property picker before deep-linking into each property's booking flow by its slug.

GET /api/public/host/:hostId/properties
GET /api/public/host/your-host-slug/properties

// Response 200
{
  "host": { "name": "Mara View Collection" },
  "properties": [
    { "slug": "mara-view-villa", "name": "Mara View Villa",
      "location": "Maasai Mara", "currency": "KES",
      "nightlyRate": 22000, "coverImageUrl": "…" }
  ]
}
KEYS, LIMITS & SAFETY

No API key needed: and why that's the safe choice

  • Everything is keyed by your property slug(or host slug for the multi-property call). That slug is already public: it's in your booking page URL: so there's nothing secret to leak.
  • Reads only ever return public-safe data: availability, blocks and calendar dates, never guest names, emails or phone numbers. Booking submissions always land as pendingfor you to approve, so an open endpoint can't confirm a stay or double-book.
  • Abuse protection is built in: every write endpoint is rate limited, and booking is additionally protected at the edge. You don't manage any of it.
  • A client-side “secret” wouldn't be secret: anything in a browser embed is visible to anyone viewing the page, so we don't ask you to paste a token that gives false confidence.
  • Need authenticated, server-to-server accessto your own private data (e.g. reading confirmed bookings with guest details from your backend)? That's a per-property secret API key kept on your server: talk to usand we'll issue one.

Not a developer? We'll do the embedding for you.

Send us your website and property slug, and our team will get the booking widget embedded and tested - free, as part of every Hosta plan.

Talk to our team
Hosta

Simple, affordable booking and property management software for hosts, worldwide.

PRODUCT
COMPANY
RESOURCES
© 2026 Hosta. All rights reserved.