Guides & product help, fjellride.se

Back to Account & Settings

Managing API keys

How to create, rotate and delete API keys for the Fjellride API.

What API keys are for

An API key lets another system talk to the Fjellride API on your organization's behalf: a custom booking site, a sync with another tool, or a script you run yourself.

The API keys page in settings
The API keys page in settings

Creating an API key

  1. Go to Settings → API Keys (in the Developer group).
  2. Click Create API Key.
  3. Give the key a Name that says where it's used, like "Website integration" or "Booking sync".
  4. Leave Expiration (optional) empty to use the default of 90 days, or enter another number of days.
  5. Under Permissions, keep all permissions, or tick the box and pick only what this integration needs.
  6. Create the key and copy it straight away.

Every key starts with fjr_. Keep it somewhere safe, like a password manager or an environment variable on your server.

Keeping keys safe

  • Keep keys on your server, in environment variables. Never put one in source code or in a web page, where anyone can read it.
  • Don't commit keys to version control.
  • Use one key per system. If one leaks, you delete that key and nothing else stops working.
  • Give each key only the permissions it needs.
  • Let keys expire. A key that runs out on its own limits the damage if it ever leaks.

For a button or calendar on your own website, use an embeddable widget instead. Widgets use publishable keys that are made to sit in a web page.

Rotating a key

  1. Create a new key.
  2. Switch your integration over to it.
  3. Check that the integration still works.
  4. Delete the old key.

Your integration keeps running the whole time.

Deleting a key

  1. Go to Settings → API Keys.
  2. Open the menu on the key's row and choose Delete.
  3. Confirm.

Deleting can't be undone. Any system still using the key loses access at once. The list also shows when each key was last used, which helps you spot keys nothing uses any more.

What an API key can do

A key works inside the organization it belongs to, with the permissions you gave it. With the right permissions it can:

  • List and manage products, locations and inventory
  • Create and update bookings
  • Read booking and customer data
  • Handle payments and refunds

For every endpoint, see Using the Fjellride API or the interactive API reference.