Skip to main content

Create an API key

To use feature flags, start by creating an API key on the Bucketeer dashboard. The client SDK requires the API key to access the server API. These keys are crucial for authentication and authorization.

They identify your project and environment, ensuring your application retrieves the correct flag configurations. Additionally, they improve security by preventing unauthorized access and maintaining the integrity of your feature flag system.

To create an API key, click on the gear icon from the sidebar menu and select API Keys. You will find all existing API keys on this page. To add a new API key, click + New API Key. On the side panel, provide:

  • Name: provide a meaningful name for your API key. This will help you identify it later in the list of keys.
  • Description (optional): add a brief description to provide additional context about the key's purpose.
  • Environment: select the environment where the API key will be used. This ensures the key is tied to the correct project and configurations.
  • Key Role: choose between one of the available options. This selection determines the level of access and permissions for the API key.

API Key Roles

API Key RoleDescription
Client SDKsAllows all SDKs to evaluate end users using the Bucketeer server.
Server SDKsAllows the server SDK to evaluate end users locally. For server-side evaluation using the Bucketeer server, use a Client SDK key.
Public API (Read Only)Allows read-only access to data in Bucketeer.
Public API (Read and Write)Allows reading and writing data in Bucketeer.
Public API (Admin)Allows full read and write access to all data in Bucketeer, including environment settings.
tip

The Bucketeer team recommends naming the API key based on the system where it will be used. It will make it easier to identify the API key used on each project. For example, if you will use the flag on Android systems, name the API key android.

Account dashboard tab

After creating the API key, it will appear on the API Keys page, and its state will be ON, meaning it's ready for use. Now you can move on to the next step and create your first feature flag. However, if you want to learn more about the usage of the API keys, check the API keys page.