# 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="/files/nkL5mR0W1moFcIY922AI" 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="/files/lYNbS9VoioFPwp91fxus" 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="/files/cSBGcgWEFCRp0hasIp7E" 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reveald.com/technical-documentation/data-sources/tenable/generate-an-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
