Quickstart: make your first API call

Go from a Demo account to a working API request in about 10 minutes

This guide takes you from a new Demo account to a working API request in about 10 minutes. You'll create an app, install it in your Demo organization, and use its API key to make your first call.

📘

Before you start

You need a Booking Experts Demo account. See Getting a BEX Demo account to request one.


1. Create your app

In your Demo administration, open the App Store, click Developers and then + New App. Fill in the details and accept the developer agreement.

For this quickstart, set the authentication method to API key. You can switch to OAuth2 before you publish. See the Authentication overview to choose the right method.

Under permissions, select at least administration|read. You'll use it in step 5.


2. Install the app in your Demo organization

  1. Go to Available apps and search for your app.
  2. Click your app, then + Install App.
  3. Select your Demo park and click Save installation.

3. Copy your API key

Open the installation page of your app. Copy the API key. It gives access to your Demo organization only, with the permissions you selected in step 1.

🚧

Keep your key secret

Anyone with the key can call the API for this organization. Don't commit it to source control or use it in front-end code.


4. Make your first request

Call GET subscription. It works with any permission and tells you what your app can access.

curl --request GET "https://api.bookingexperts.com/v3/subscription" \
  --header "Accept: application/vnd.api+json" \
  --header "X-API-KEY: YOUR_API_KEY"

You get a 200 OK response like this (shortened):

{
  "data": {
    "id": "4821",
    "type": "subscription",
    "attributes": {
      "authorized": true,
      "organization_locale": "nl",
      "current_scopes": ["administration|read"],
      "created_at": "2027-01-12T10:31:02.000+01:00",
      "updated_at": "2027-01-12T10:31:02.000+01:00"
    },
    "relationships": {
      "organization": {
        "data": { "id": "312", "type": "organization" }
      },
      "administration_subscriptions": {
        "data": [{ "id": "977", "type": "administration_subscription" }]
      }
    }
  }
}
  • current_scopes lists the permissions your app has.
  • administration_subscriptions lists the administrations (parks) the installation gives you access to.

5. List your administrations

Most endpoints are scoped to an administration. Get the IDs with GET administrations:

curl --request GET "https://api.bookingexperts.com/v3/administrations" \
  --header "Accept: application/vnd.api+json" \
  --header "X-API-KEY: YOUR_API_KEY"

Use an administration id from the response in paths such as /v3/administrations/{administration_id}/reservations.


If something goes wrong

ResponseCauseFix
403 INVALID_TOKENThe X-API-KEY header is missing, or the key is wrong or revokedCopy the key again from the installation page
403 NO_VALID_SCOPEYour app doesn't have the permission the endpoint needsThe detail names the scope. Add it to your app and update the installation
403 APPLICATION_HALTEDYour app has been blockedContact Booking Experts
406 or 415 UNSUPPORTED_MEDIA_TYPEThe Accept or Content-Type header has parameters, such as ; charset=utf-8Send application/vnd.api+json without parameters
429 RATE_LIMITEDToo many requestsSee rate limits in the API introduction

Next steps


Did this page help you?