API Keys API

On this page
Available since 1.26.0

This page describes the API for managing API keys, including creating, retrieving, updating and deleting them.

Most FusionAuth APIs are secured using an API key. This API can only be accessed using an API key that has a keyManager attribute of true, which can only be configured through the Admin UI or Kickstart. In order to retrieve, update or delete an API key, an API key with equal or greater permissions must be used. A "tenant-scoped" API key can retrieve, create, update or delete an API key for the same tenant.

To get started scripting the creation of API keys, follow these steps:

  1. Create an API key with the Allow this key to manage other keys setting enabled.
    • This can only be done using the Admin UI Settings -> API Keys -> Add or Kickstart, not this API.
  2. Use that key to authenticate requests to this API.
  3. Call this API to create, retrieve, update or delete additional API keys as needed.

Please refer to the Authentication document for more details about using API keys.

Here's a brief video covering the API keys API:

Play

The Key Manager Setting#

Note

This API can only be used by API keys with the Allow this key to manage other keys setting enabled.

Below is an image of an API key being created in the Admin UI with Allow this key to manage other keys enabled:

The Key Manager Setting
The Key Manager Setting

For security purposes, the Allow this key to manage other keys setting may be modified only using the Admin UI or Kickstart. It can't be changed using this API.