> ## 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

> Create a data API to expose query results programmatically from NexusOne's Ask or Engineer feature.

Data APIs are RESTful API endpoints used to interact with ingested data within the NexusOne platform.
This interaction leverages the Ask or Engineer feature.

## Prerequisites

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

## Create a data API

<Tabs>
  <Tab title="Web portal" icon="browser">
    While creating a data API, ensure it's for a specific purpose. This could be to gather data insights or
    perform data transformation.

    1. Log in to NexusOne.
    2. On the NexusOne homepage, click **Connect**.
    3. Click the plus `+` icon in the top right corner of the Data APIs page.
    4. Select a domain relevant to your data.
    5. Enter the SQL query used to fetch your data.
    6. Enter a name for your API.
    7. Select the appropriate role based on the API's purpose.
    8. Click **Create** to generate the new API.
  </Tab>

  <Tab title="REST API" icon="code">
    Use the following API endpoint to
    [create a data product](/api-reference/endpoints/data-products-formerly-views/creates-data-products).
  </Tab>
</Tabs>

## 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).
