Authentication
There are three ways to authenticate with the Camping.care API. Which one you use depends on what you’re building.
Public key
Section titled “Public key”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.
Private key
Section titled “Private key”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.
When you make an API call, send the API key as a Bearer token:
curl --location --request GET 'https://api.camping.care/v21/users/me' \ -H "Accept: application/json" \ -H "Authorization: Bearer {privateApiKey}"OAuth 2.0
Section titled “OAuth 2.0”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.