Skip to main content

API keys

You can use API keys to enable programmatic access to all of your data within Cortex, including everything from high-level Scorecard stats to detailed information about specific entities in your catalogs.

You can access API keys in settings.

caution

Only admins have the ability to access this page and create API keys.

Creating an API key

To create a new API key, select Create API key at the top of the page. This will open a modal for you to enter the API key’s role and description.

Roles

An API key can have one of the three default permissions - viewer, user, or admin - or can be assigned a custom role. These permissions mirror individual permissions and roles.

In the case of API keys, there is no manager role because managers possess all of the same relevant abilities as admins.

tip

When creating an API key, you should use the fewest possible permissions. The vast majority of your API keys will require viewer or user permissions. The API key will need admin permissions if you’re creating/editing scorecards or managing integrations.

Description

The modal will prompt you to include a short description for the API key. Although the description is optional, it is strongly recommended that you write some detail about what the API key is used for. This not only makes it easier to rotate API keys and conduct tests, but it also ensures that no one will delete an important key.

Copy and store

Once you click Create API Key, you’ll be provided with the full key at the top of the page. As soon as you refresh or leave the page, the key will disappear, so it is crucial that you copy your API key before moving on.

Cortex will only preserve the last 4 digits of the key for cross-referencing, but the rest of the key will be encrypted. This is also why the description is so important.

caution

API keys created in Cortex will disappear once you refresh or leave the page, so make sure to copy the key before moving on.

Once you create an API key, you will not be able to make changes to it later on. If you need to modify a key, you will need to delete it and re-create it. You’ll be prompted to confirm this decision, so you don’t have to worry about accidentally deleting an API key.

There is no limit to the number of API keys you can create. You can access all of our API docs here.