Partners who sell your parking from their own website or system connect to the Parktelligence external API, at the base path /api/v1/external. They can check availability and prices, create quotes, confirm bookings and read or cancel the bookings they made. Every request needs an API key that you issue. The technical details are in the API documentation.
Two kinds of key
The Resellers & API tab under Settings (admins only) lists all your keys.
- A reseller key belongs to one reseller and works on the partner API. This is the key a partner needs.
- A key you create with New API Key at the top of the tab is an internal key. It only signs in the customers of your booking website and does not work on the partner API.
Create a reseller key
Every new reseller is created with its first key; see Resellers, Parkos and ParkingPro. To add another key:
- In the Resellers list, click the reseller and open the API Keys tab.
- Click New API Key.
- Enter a Key name and, if you like, a Description.
- Tick the Permissions the partner needs.
- Set the Location access: all locations, or the ones you tick. This cannot be changed once the key exists.
- Set the Rate limit: 100 to 100,000 calls per hour.
- Fill in the Allowed IPs, separated by commas.
- Click Create API key.
Creating, editing and switching on a key need two-factor authentication on your own account.
Permissions
Checking availability and prices needs no permission. The other calls do:
| Permission | Allows |
|---|---|
quotes:write | Create a price quote and confirm it into a booking |
quotes:read | Read a quote |
bookings:read | List and read bookings |
bookings:write | Cancel a booking and request a payment link |
A call without the permission it needs is refused. Give a key only the permissions the partner uses.
Allowed IPs and write access
Left empty, Allowed IPs lets every address use the key. A key with quotes:write or bookings:write belongs on a partner's server, so it must list that server's addresses; * does not count. Without them, its quote and booking calls are refused.
A key can also only reach the locations the reseller may sell, whatever the key itself allows.
Rate limit and expiry
The Access tab of the reseller window shows one block per key, with its Rate Limit, Allowed IPs and Expiration Date (or No expiration). Change the values and click Save in that block.
The key is shown once
Right after you create or regenerate a key, a window shows the full key with a copy button. Only a hash is stored, so no screen can show it again. Pass it to the partner securely; they keep it on their server.
The list shows each key's prefix, the first characters, so you can recognise a key without handling the key itself. It also shows when the key was last used and how many calls it made.
Rotate, switch off or delete a key
- Regenerate gives the key a new value. The old value stops working at once.
- The switch, or the eye icon in the main list, turns a key off. It stops working at once and can be turned on again.
- The bin deletes the key after you confirm.
Switching a key off and deleting it need no two-factor sign-in, so anyone who manages keys can stop a leaked key immediately.
More: the API documentation and Reservation features.