> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a data API key

> Create a data API key to authenticate and securely access data APIs.

A data API key provides authentication for your app to interact securely with generated data APIs.

If you create a data API key using the instructions in the [Ask](/documentation/ai/tasks/ask/create-an-ask-api) or
[Engineer](/documentation/data-pipeline/tasks/engineer/create-an-engineer-api) page, NexusOne automatically generates a
unique API key.

This guide explains how you can manually create a data API key.
Regardless of whatever approach you use, your app must include this key in the header of each HTTP request.

## Prerequisites

* Appropriate permission: `nx1_ask` or `nx1_engineer`
* An existing domain created using [DataHub](/platform-components/datahub)
* A previously [ingested](/documentation/data-pipeline/overview/ingest) dataset within a DataHub domain

## Create a data API key

To authenticate with a data API, you need a data API key.

1. Log in to NexusOne.
2. On the NexusOne homepage, click **Connect**.
3. On the top navigation bar, hover your mouse over **Connect** and then select **API Keys**.
4. Click the plus `+` icon in the top right corner of the Data API Keys page.
5. Select an existing data API.
6. Add a brief description for the key. This is optional.
7. Add the number of days the key should be valid for. The minimum is one day.
8. Click **Create** to generate the new API key.

## Additional resources

* For an overview of the Data API and API key feature, refer to
  [Data API and API key Overview](/documentation/platform/overview/data-api-and-api-key).
* For more information about the Ask API, refer to [Create an Ask API](/documentation/ai/tasks/ask/create-an-ask-api).
* For more information about the Engineer API, refer to [Create an Engineer API](/documentation/data-pipeline/tasks/engineer/create-an-engineer-api).
* For more information about roles or permissions, refer to [Govern Overview](/documentation/govern/overview).
