Scopes
The operator chooses a key's scopes when it creates or edits the key. These scopes are checked on the External API:
| Scope | Operations |
|---|---|
quotes:read | Read a quote by id or by reference |
quotes:write | Create a quote and confirm a quote into a booking |
bookings:read | List bookings and read a booking by reference |
bookings:write | Cancel a booking and create a payment link |
The location list, availability and pricing need a valid key but no specific scope.
Booking reads return the customer's name, e-mail address, phone number and licence plate. Ask only for the scopes your integration uses; a key without bookings:read cannot read customer data.
A request for an operation outside the key's scopes is answered with 403.
Rate limits
Each key has an hourly request limit set by the operator: 1,000 requests per hour by default, adjustable per key between 100 and 100,000 per hour. Every answer reports where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the current hour |
X-RateLimit-Remaining | Requests left in the current hour |
X-RateLimit-Reset | When the current window resets |
Above the limit the API answers 429 Too Many Requests with a Retry-After header. Wait at least that long before the next request.
Two further protections also answer 429:
- The API host limits the request rate per client address.
- An address that keeps presenting keys that are refused is blocked for a short time, so a misconfigured client cannot flood the API.
IP allowlist
A key can carry a list of server addresses it may be used from. A request from any other address is refused with 401, exactly as an invalid key. An entry of * admits every address.
Give the operator the fixed outbound addresses of the servers that will call the API. We recommend an allowlist on every key, and in particular on keys with quotes:write or bookings:write: the operator's app warns when a key that can create bookings has no address list.