# Generate an API Key

{% hint style="warning" %}
This guide is under construction. Please excuse our dust.
{% endhint %}

Your Tenable environment may have your Tenable data residing on your local servers, or it may be in the cloud. The instructions for integrating Tenable with Epiphany vary slightly depending on your particular installation:&#x20;

* If your Tenable data resides in the cloud, you are using Tenable.io. You will be setting up a *cloud*-based data source in Epiphany. Follow the instructions in [*Create an API Key With Your Tenable.io Interface*](#create-an-api-key-with-your-tenable.sc-interface) below.&#x20;
* If your Tenable data resides on your local servers, you are using Tenable.sc. You will be setting up an *on-prem* data source in Epiphany. Follow the instructions i[n *Create an API Key With Your Tenable.sc Interface*](#create-an-api-key-with-your-tenable.sc-interface) below.&#x20;

## Create an API Key in Tenable.io

{% hint style="info" %}
These instructions apply if you are using Tenable.io and you have a *cloud*-based data source in Epiphany.
{% endhint %}

#### Step 1:&#x20;

* In the upper-left corner of the tenable.io application, click the <img src="https://4132260347-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftkp3obVDMu3n9ZTUpfEP%2Fuploads%2Ft7T3xAWZNCNTb7HqjnPw%2Fimage.png?alt=media&#x26;token=debf55bf-b244-4c9a-9498-56ef3caa06b7" alt="" data-size="line"> button.
* In the left navigation pane, select **Settings**.&#x20;
* Select the **My Account** tile.
* In the upper-right corner, select the <img src="https://4132260347-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftkp3obVDMu3n9ZTUpfEP%2Fuploads%2FnpRdkW0h3seRCtamRpo2%2Fimage.png?alt=media&#x26;token=83d00e9c-96cd-46d7-85ab-028e47d8c6df" alt="" data-size="line">button.&#x20;
* Select **My Account.**

#### Step 2:

* Select the **API Keys** tab.
* Select **Generate**.
* Review the warning and select **Generate**.
* Copy the new **Access Key** and **Secret Key** and store them in a safe location.&#x20;

## Create an API Key in Tenable.sc

{% hint style="info" %}
These instructions apply if you are using Tenable.sc and you have an *on-prem*  data source in Epiphany.
{% endhint %}

#### Step 1:&#x20;

* Log in to Tenable.sc.
* In the top navigation bar, select **System** > **Configuration**. The **Configuration** page displays.
* Select the **Security** tile. The **Security Configuration** page displays.
* In the **Authentication Settings** section, select **Allow API Keys** to enable the toggle.
* Select **Submit**. Tenable.sc saves your configuration.

#### Step 2:

* Log in to Tenable.sc if you're not still logged in.
* Select **Users** > **Users**. The **Users** page displays.
* In the row for the user for which you are generating an API key, select <img src="https://4132260347-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftkp3obVDMu3n9ZTUpfEP%2Fuploads%2Fxbe71yCrJ9vycEqreaec%2Fimage.png?alt=media&#x26;token=9e4b5d31-5ce6-46d9-aba9-f631346080b2" alt="" data-size="line">. The actions menu displays.
* Select **Generate API Key**. A confirmation window displays.&#x20;
* Select **Generate**. The **Your API Key** window displays. It shows the **Access Key** and the **Secret Key**.&#x20;
* Copy the new **Access Key** and **Secret Key** and store them in a safe location.&#x20;
