> ## 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 an Ask API

> Create an Ask API to query domain data and generate a Data API with an API key.

Creating an Ask API grants you the ability to fetch data and use it in your desired app. After you create the Ask API,
the system generates a Data API and a data API key.

## Prerequisites

* Appropriate permission: `nx1_ask`
* An existing domain created using [DataHub](/platform-components/datahub)
* A previously ingested dataset within a DataHub domain

## Create an Ask API

<Tabs>
  <Tab title="Web portal" icon="browser">
    1. Log in to NexusOne.
    2. On the top navigation bar, hover your mouse over **AI** and then select **Ask**.
    3. Select a domain relevant to your data.
    4. Query the data using one of the following methods:
       * Select a suggested query from the list.
       * Enter a question in the "Add an analysis" field.
    5. You should see a [Metabase](/platform-components/metabase/metabase-in-nx1) dashboard to analyze the data.
    6. Click the download icon to create the Ask API.
       1. Enter the name.
       2. Select the **nx1\_engineer** role.
       3. Click **Create**.
    7. View your Data API and API key:
       1. On the NexusOne homepage, navigate to **Connect > Data API** to view your Data API.
       2. Click **API Keys** from the navigation side-bar to view your API key. If you have a long list of keys present, use the **filter by description or key field** to find the API key.
  </Tab>

  <Tab title="REST API" icon="code">
    Use the following API endpoints to:

    1. [Get a list of available domains](/api-reference/endpoints/metastore/get-domains).
    2. [Ask a question about a data domain](/api-reference/endpoints/queries-formerly-cards/asks-question-about-a-data-domain)
       or [generate suggested questions](/api-reference/endpoints/queries-formerly-cards/generates-suggested-questions).
    3. [Create a query for a Metabase card](/api-reference/endpoints/queries-formerly-cards/creates-query-for-a-card).
    4. [Create a data product](/api-reference/endpoints/data-products-formerly-views/creates-data-products).
    5. [Create an API key](/api-reference/endpoints/data-products-formerly-views/creates-a-pre-shared-key).
  </Tab>
</Tabs>

## Additional resources

* For full instructions about how to ingest a file in NexusOne, refer to
  [How to ingest a file](/documentation/data-pipeline/tasks/ingest/ingest-a-file).
* For more information about roles or permissions, refer to [Govern Overview](/documentation/govern/overview).
