Skip to content

Authentication

There are three ways to authenticate with the Camping.care API. Which one you use depends on what you’re building.

We can generate a public key for each administration. A public key has a fixed set of scopes that give access to administration and accommodation information, which is enough to create an online Booking Engine.

You can generate multiple secret API keys for each administration. For each API key we automatically create a user, and you can set the scopes for each API key (user) individually.

Create your API keys here

When you make an API call, send the API key as a Bearer token:

Terminal window
curl --location --request GET 'https://api.camping.care/v21/users/me' \
-H "Accept: application/json" \
-H "Authorization: Bearer {privateApiKey}"

Apps in the App Store use OAuth 2.0, so you never have to exchange API keys with the campsite. We explain the full flow in the App Store section: OAuth 2.0 flow.