Create the public key
Open Settings, then Website (only roles with the website right see this tab) and press Create key under Public key. It starts with hk_ and reads free rooms. It is shown once, so copy it at once.
Your website can show free rooms, send reservations and publish a calendar of busy nights. It needs a key from Settings, Website, and it never receives guest names, room numbers or room states.
Open Settings, then Website (only roles with the website right see this tab) and press Create key under Public key. It starts with hk_ and reads free rooms. It is shown once, so copy it at once.
Press Create key under Booking key. It starts with hs_, needs the public key first and belongs only on your server, never in a web page.
Under Allowed website addresses enter up to 10 https addresses, one per line, with no path. Availability requests from other origins get HTTP 403. The browser blocks your page from reading that response.
The base URL is the address where you log in to the app, followed by /api/v1/web. The examples below use https://checkinbell.com/api/v1/web.
Send the key as Authorization: Bearer <key>; the hotel is taken from the key. Availability needs the public key (hk_), reservations need the booking key (hs_). A calendar link needs no header, because the token in the link is the key. A browser may first send OPTIONS /availability (preflight), which needs no key.
Query parameters from and to, both as YYYY-MM-DD. The nights counted run from from up to, but not including, to. From cannot be before today in the hotel’s time zone, and the range is at most 90 nights. Occupied, reserved and out-of-order rooms do not count toward the free total for that night.
The response includes the hotel name, its time zone and the dates. For each type, rooms counts active rooms and free gives the number available each night in date order. A booking needs one room free for the entire stay. Your client may cache availability for up to 60 seconds.
curl "https://checkinbell.com/api/v1/web/availability?from=2027-03-10&to=2027-03-13" \
-H "Authorization: Bearer hk_YOUR_PUBLIC_KEY"const res = await fetch(
'https://checkinbell.com/api/v1/web/availability?from=2027-03-10&to=2027-03-13',
{ headers: { Authorization: 'Bearer hk_YOUR_PUBLIC_KEY' } }
);
const data = await res.json();{
"hotel": "Your hotel",
"timezone": "Europe/Ljubljana",
"from": "2027-03-10",
"to": "2027-03-13",
"types": [
{ "type": "Double", "rooms": 10, "free": [4, 3, 5] }
]
}Call it from your server with the booking key, Content-Type: application/json and a JSON body. The booking endpoint blocks cross-origin browser requests. Required: request_id, type, from, to and guest_name. Optional: adults, children, phone and note. The app puts the reservation in the first free room of that type, and reception sees it like any other reservation.
If a request times out, send it again with the same request_id and the same details: you get the same reservation back (200) and nothing is created twice. A new reservation returns 201 with the same response fields. Use dates that still meet the date rules when you retry.
curl -X POST "https://checkinbell.com/api/v1/web/bookings" \
-H "Authorization: Bearer hs_YOUR_BOOKING_KEY" \
-H "Content-Type: application/json" \
-d '{"request_id":"web-2027-000123","type":"Double","from":"2027-03-10","to":"2027-03-13","guest_name":"Jane Guest","adults":2,"children":0,"phone":"+000 00 000 000","note":"Late arrival"}'const res = await fetch('https://checkinbell.com/api/v1/web/bookings', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HOTEL_BOOKING_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
request_id: 'web-2027-000123',
type: 'Double',
from: '2027-03-10',
to: '2027-03-13',
guest_name: 'Jane Guest',
adults: 2,
children: 0,
phone: '+000 00 000 000',
note: 'Late arrival',
}),
});
const booking = await res.json();{
"booking_id": "BOOKING_ID",
"status": "booked",
"type": "Double",
"from": "2027-03-10",
"to": "2027-03-13"
}In Settings, Website, each room type has its own calendar link ending in .ics. Add it to a booking site or a calendar app. It has an all-day event called Booked for every run of nights with no free room, for the next 365 days, and may be cached for 5 minutes.
curl "https://checkinbell.com/api/v1/web/ical/PROPERTY_ID/CALENDAR_TOKEN.ics"BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Hotel//Availability//EN
CALSCALE:GREGORIAN
X-WR-CALNAME:Double
BEGIN:VEVENT
UID:example-event@hotel
DTSTAMP:20270301T120000Z
DTSTART;VALUE=DATE:20270310
DTEND;VALUE=DATE:20270312
SUMMARY:Booked
END:VEVENT
END:VCALENDAREach key is shown once. The app rejects a replaced key on the next request it receives. Cached availability or calendar responses may stay visible until they expire. Replacing the public key also retires every calendar link, so copy the new links from Settings and update every site that uses them. Replacing the booking key only stops reservations from your website until it is updated.
Each IP address gets 60 requests per minute across the three endpoints and availability preflight. That limit returns HTTP 429 with a JSON message and a Retry-After header. Each property also gets 60 authenticated availability requests and 30 authenticated booking requests per minute. Those limits return HTTP 429 with error rate_limited and Retry-After: 60.
Endpoint errors use JSON in the form {"error": "code"}. Browser code can read invalid_range when the request uses a valid key and an allowed origin.
The examples use the address https://checkinbell.com and placeholder keys. Use your own keys and dates that are still in the future. The two booking examples use the same request_id and details to show the same reservation.
Create your hotel, add rooms and colleagues, then run the day live. Free to use for now.