Skip to content

Creating a User API Key

Introduction

Using the Flywheel CLI or SDK to interact with your Flywheel site requires creating and authenticating with an API Key. Starting with Flywheel Enterprise version 16.19.0, only Enhanced API Keys can be created, while prior versions permit creating Legacy API Keys.

Use of existing Legacy API Keys will not be supported in a future major version update of Flywheel Enterprise.

Instruction Steps

Warning: Support for Legacy API Keys will end with the 19.0 release of Flywheel Enterprise, expected to be released in July 2024. Once upgraded to version 19.0.0 or later, a Flywheel site will reject all authentication attempts that use Legacy API Keys.

Caution: Do not share your API key. This key should be treated like a password.

About Key Generation

Key Expiration Requirements

  • As of Flywheel Core 17.4, expiration dates are required on all Enhanced API Keys.
  • For existing API Keys, the expiration date will be set to 1 year from the time of upgrade.
  • For new API Keys, the expiration date will be set by the user at the time the key is created.
  • A warning will be displayed upon user login for API Keys that are expired or about to expire.

Multiple API Keys

  • Starting with Flywheel Core 17.4, users can provision and apply a new API Key before the existing one is deleted or expires.
  • Flywheel permits up to 5 Enhanced API Keys per user and per device.

Key Generation

Generate an API Key (Enhanced)

  1. Log into Flywheel.

  2. In the upper-right corner, select your account menu and select Profile.

    Account menu dropdown listing Manage Site Mode, Profile, and Logout options

  3. Scroll down to to the Flywheel Access section.

    Flywheel Access section with an empty key list and the Generate API Key button

  4. Click Generate API Key

  5. Provide a name for your key, select an expiration date and click Add Key.

    Generate API Key dialog with Key Name and Expiration Date fields, and Add Key button

  6. Copy the new key and save it securely. It will not be accessible again.

    API Key Generated dialog showing the new key and CLI login command with Copy buttons

Generate an API Key (Legacy)

  1. Log into Flywheel.

  2. In the upper-right corner, select your account menu and select Profile.

    Account menu dropdown with Profile highlighted above Manage Site and Log Out

  3. Scroll down to to the API Key section.

    Legacy API Key section with an empty key field and Generate API Key button

  4. Click Generate API Key


Resources