Bookpage24

Beds24 API V2: access, endpoints, limits and the pitfalls we hit

The Beds24 API lets other software read and change a Beds24 account: bookings, availability, prices and property settings. This guide explains it first for hoteliers asked to give an app “API access”, then for developers and agencies building on it, and ends with the pitfalls we hit building Bookpage24 on it.

Updated 12 October 2026 · by the Bookpage24 team

The Beds24 API in plain words

An API is a door for software. Instead of someone typing into your Beds24 control panel, an app sends requests such as “which rooms are free on 12 November?” or “create this booking”. Channel tools, pricing tools, messaging apps and booking engines such as Bookpage24 all work this way.

You never give an app your Beds24 password. You create an access code with only the permissions the app needs, and you can revoke that access in Beds24 later. In practice:

  1. Ask the app which permissions (scopes) it needs: read only, or read and write, for bookings, inventory, properties and so on.
  2. Create an invite code with those scopes under (SETTINGS) MARKETPLACE > API, as the Beds24 API documentation describes. If the menu is missing, Beds24 support can enable it.
  3. Send the code to the app within 24 hours: it works once.
  4. Revoke the access in Beds24 when you stop using the app.

Asked for your Beds24 API key? API V2 has none: create an invite code with only the permissions the app needs (valid 24 hours, single use), and never share your Beds24 password.

API V1 or V2, and where is the API key?

API V1 is deprecated and “will not be developed further” (Beds24 wiki). Its JSON functions used an API key and a property key that you set yourself in the control panel: that is what an app or an old tutorial means by a “Beds24 API key”.

API V2 has no key: “API V2 access is available on every Beds24 account and you do not need a separate API key for it.” You create an invite code, or a read-only long life token, and the app exchanges the code for tokens. Beds24 calls V2 “the current version and the one we recommend for all new integrations” (API V2 documentation).

Tokens: from invite code to refresh token

The invite code has its own guide: see Beds24 invite code for creating one step by step and the reasons a code fails. For developers, the sequence is:

  1. The property creates an invite code and picks its scopes. It is valid 24 hours and works once.
  2. The app exchanges it with GET /authentication/setup (header code) and receives a token and a refreshToken.
  3. Each call sends the token in a token header. A token lasts 24 hours: reuse it, since “getting a new token costs credits”.
  4. When it expires, GET /authentication/token with the refreshToken header returns a fresh one.
# Exchange the invite code (once, within 24 hours)
curl -H "code: <INVITE_CODE>" https://api.beds24.com/v2/authentication/setup
# → { "token": "<TOKEN>", "expiresIn": 86400, "refreshToken": "<REFRESH_TOKEN>" }

# Call the API
curl -H "token: <TOKEN>" https://api.beds24.com/v2/properties

# Renew the token
curl -H "refreshToken: <REFRESH_TOKEN>" https://api.beds24.com/v2/authentication/token

Refresh tokens “do not expire so long as they have been used within the past 30 days”: store them encrypted on your server and renew the token daily. Read-only jobs can use a long life token instead, which expires after 90 days without use. Vendors with many Beds24 customers can apply for marketplace partner access: Beds24 then issues organisation tokens, and properties activate the integration in the Beds24 Marketplace instead of sending an invite code.

Scopes: what an app can see and change

Scopes are set when the invite code is created and “cannot be changed later”: to change them, create a new code. Each scope takes a method: read:bookings, write:bookings or all:bookings.

ScopeGives access to
bookingsBooking basics: dates, room, status
bookings-personalGuest details and messages
bookings-financialInvoice items and other financial data
inventoryOffers, availability, per-day calendar
propertiesProperty and room settings
accountsAccounts and sub-accounts
channelsChannel settings and the Airbnb, Booking.com and Stripe endpoints

The form also asks whether the app may reach linked properties (off by default) and lets you add an IP whitelist, so that only the app’s server can use the code. Grant only what the app needs: Bookpage24 asks for bookings, inventory and properties, read and write.

Main endpoints and the official documentation

Everything lives under https://api.beds24.com/v2. Endpoints marked alpha are usable but still being developed; beta ones are mostly finished and being tested.

EndpointWhat it is for
GET /inventory/rooms/offersBookable offers and their total price for a stay, as a booking engine shows them
/inventory/rooms/calendarPer-day prices, availability, minimum stays and closures
/inventory/fixedPricesPrices with start and end dates
/bookingsRead, create, modify and cancel bookings; by default, reads return only upcoming ones
/bookings/messagesGuest messages
/propertiesProperties and room types (beta)
/channels/…Airbnb, Booking.com and Stripe actions (alpha or beta)
curl -H "token: <TOKEN>" \
  "https://api.beds24.com/v2/inventory/rooms/offers?propertyId=<PROPERTY_ID>&arrival=2026-11-12&departure=2026-11-14&numAdults=2"

The interactive Swagger documentation lists every endpoint and lets you try calls with your token; the FAQ and changelog are on the Beds24 wiki.

Limits, credits and API pricing

Each account gets 100 credits per 5 minutes by default, shared by all its tokens; sub-accounts have their own limit. The cost of a request “is calculated dynamically and depends on how complex the request is”: ours typically cost one to two credits. Three response headers tell you where you stand: x-five-min-limit-remaining, x-five-min-limit-resets-in (seconds until the window resets) and x-request-cost.

API access itself comes with the account. Through a support ticket, Beds24 raises the limit to 200 credits per 5 minutes for €10 a month, and further if you need it. Before paying, reuse tokens, batch writes (about 1 MB or 10,000 items per POST), request several IDs per GET and use webhooks rather than polling.

Webhooks instead of polling

Beds24 sends three kinds of webhooks (Beds24 wiki):

  • Booking webhooks, set per property under (SETTINGS) PROPERTIES > ACCESS: they fire on new bookings and on significant changes such as new dates or a cancellation, not on every edit of guest details. Version 2 posts the booking as JSON.
  • Inventory webhooks, set under (SETTINGS) MARKETPLACE > WEBHOOKS, when availability or prices change.
  • Auto action webhooks, fired by your Beds24 auto actions.

Expect “an average delay of one minute”. Bookings you write through the API trigger webhooks only with the allowWebhooks action, and then only for changes that affect availability, such as dates, room or status. Webhook URLs are set per property: if another app already uses the booking webhook, do not overwrite it; poll GET /bookings with modifiedFrom, as we do.

Pitfalls we hit while integrating

We built Bookpage24, a Beds24 booking engine, on this API. These traps cost us the most time; each was checked against the live API:

  • numAdults, plural, in the offers query. numAdult returns a misleading 2002 Occupancy not defined. Bookings, though, use numAdult and numChild.
  • Offer prices exclude the tourist tax: add city tax yourself if guests must see the full amount.
  • Beds24 does not price API bookings. Without invoice items a booking arrives at 0, and the total is not computed from the lines: send price and the items, or set the autoInvoiceItemCharge action to turn the price into a charge.
  • Send checkAvailability: true in the actions, so Beds24 does not save a booking for a room taken a second ago.
  • Tag bookings with apiReference (up to 100 characters): Beds24 rewrites referer to “API”, and GET /bookings?apiReference=… finds yours.
  • There is no sandbox, and staging “does not fully mirror production”: test on a room you can spare.
  • Credit headers differ from the OpenAPI file: read the three headers listed above.
POST https://api.beds24.com/v2/bookings
token: <TOKEN>

[{
  "roomId": <ROOM_ID>,
  "arrival": "2026-11-12",
  "departure": "2026-11-14",
  "numAdult": 2,
  "firstName": "<FIRST_NAME>",
  "lastName": "<LAST_NAME>",
  "status": "confirmed",
  "price": 286.00,
  "apiReference": "<YOUR_APP>:<YOUR_REFERENCE>",
  "invoiceItems": [
    { "type": "charge", "description": "Double room, 2 nights", "qty": 1, "amount": 280.00 },
    { "type": "charge", "description": "City tax", "qty": 1, "amount": 6.00 }
  ],
  "actions": { "checkAvailability": true }
}]

A room type with no offer is what shows as “No price found” on the Beds24 booking page: see how to fix “No price found”.

Building for a client or several properties?

Agencies often rebuild the same booking flow for every client: offers, city tax, payment and the booking write-back. Bookpage24 already does it on top of Beds24, as a hosted page, a widget of two lines of code or a WordPress plugin, priced per property. Managing several properties? Book a 20-minute call.

Would an existing app do the job? See Beds24 integrations and Beds24 dynamic pricing.

Frequently asked questions

Where do I find my Beds24 API key?

API V2 has none. Create an invite code under (SETTINGS) MARKETPLACE > API in Beds24 (Beds24 wiki) and give it to the app, which exchanges it for tokens. API keys belong to the deprecated V1.

Can I limit what an app can do in my Beds24 account?

Yes. The scopes chosen when you create the invite code decide what the app can read or change, and an IP whitelist can restrict which server may use it. Scopes cannot be changed later: create a new code instead.

Is the Beds24 API free?

Access comes with every Beds24 account, with a default limit of 100 credits per 5 minutes per account. Raising it to 200 costs €10 a month.

Does Beds24 have webhooks?

Yes: booking webhooks per property, inventory webhooks for availability and price changes, and auto action webhooks. Expect an average delay of about a minute.

Is there a Beds24 API sandbox?

No. Beds24 has a staging system, but it does not fully mirror production, so test on a room you can spare.

Why does my API booking show a price of 0?

Beds24 does not price bookings created through the API. Send the total in price, and add invoice items for the room and any city tax.

Beds24 is a trademark of Beds24 GmbH. We are an independent service, not affiliated with Beds24.