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 startYou 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
- Go to Available apps and search for your app.
- Click your app, then + Install App.
- 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 secretAnyone 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_scopeslists the permissions your app has.administration_subscriptionslists 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
| Response | Cause | Fix |
|---|---|---|
403 INVALID_TOKEN | The X-API-KEY header is missing, or the key is wrong or revoked | Copy the key again from the installation page |
403 NO_VALID_SCOPE | Your app doesn't have the permission the endpoint needs | The detail names the scope. Add it to your app and update the installation |
403 APPLICATION_HALTED | Your app has been blocked | Contact Booking Experts |
406 or 415 UNSUPPORTED_MEDIA_TYPE | The Accept or Content-Type header has parameters, such as ; charset=utf-8 | Send application/vnd.api+json without parameters |
429 RATE_LIMITED | Too many requests | See rate limits in the API introduction |
Next steps
- Read the Authentication overview and set up OAuth2 before other organizations install your app.
- Learn how to create related records in one request with Sideposting.
- Pick the guide for your use case, such as Bookings and Reservations or Distribution / OTA.
- Get notified of changes with Webhooks.
Updated about 4 hours ago