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

# Connect New Relic with API Key (Multiple Companies) – StackOne Hub

> Link a New Relic account in the StackOne Hub using API Key (Multiple Companies). End-user guide to authorize the integration and start using New Relic actions.

## Generate a User API key

New Relic authenticates this integration with a personal User API key. Create one from the\
**API Keys** page of your New Relic account.

**1. Open the API keys page**

Sign in to New Relic and open the **API keys** page (**Administration → API Keys**) for the\
region your account is hosted in:

<ul>
  <li>**US** — [New Relic US API keys page](https://one.newrelic.com/api-keys)</li>
  <li>**EU** — [New Relic EU API keys page](https://one.eu.newrelic.com/api-keys)</li>
  <li>The page is the same in both regions — only the host differs.</li>
</ul>

**2. Create a new key**

On the **API keys** page, click **Create a key**.

![New Relic API keys page with the Create a key button highlighted](https://mintcdn.com/stackone-60/taSDfrd-ek8zJVcR/connectors/newrelic/images/custom-config-create-a-key.png?fit=max\&auto=format\&n=taSDfrd-ek8zJVcR\&q=85\&s=032e37565cc1382c3540cbe421b20ffe)

**3. Set the key type to User**

In the **Create an API key** panel, pick the account the key should belong to in the\
**Account** dropdown, and make sure **Key type** is set to **User** (the default selection).\
As the panel explains, **User keys** are for querying data and managing configurations\
(Alerts, Synthetics, dashboards, etc.).

![Create an API key panel with the Key type dropdown set to User](https://mintcdn.com/stackone-60/taSDfrd-ek8zJVcR/connectors/newrelic/images/custom-config-key-type-user.png?fit=max\&auto=format\&n=taSDfrd-ek8zJVcR\&q=85\&s=492814218ead662454b59a7faffd6fb0)

**4. Enter a name and create the key**

Enter a descriptive **Name** (for example `StackOne Integration`), optionally add **Notes**,\
and click **Create a key**.

![Create an API key panel with a name filled in and the Create a key button highlighted](https://mintcdn.com/stackone-60/taSDfrd-ek8zJVcR/connectors/newrelic/images/custom-config-name-and-create.png?fit=max\&auto=format\&n=taSDfrd-ek8zJVcR\&q=85\&s=e05d70d23b9de85de1583fe8e9a54a26)

**5. Copy the User API key**

A banner appears above the key list reading **Copy your API Key now. You won't be able to see it again!**\
Click **Copy Key** and paste the value into the **User API Key** field in StackOne Hub.

<ul>
  <li>The key is only displayed once and cannot be retrieved later. If you lose it, create a new key.</li>
  <li>Format: `NRAK-` followed by an alphanumeric string</li>
  <li>Example: `NRAK-XXXXXXXXXXXXXXXXXXXXXXXXXXX`</li>
</ul>

![Banner prompting to copy the API key now with the Copy Key button highlighted](https://mintcdn.com/stackone-60/taSDfrd-ek8zJVcR/connectors/newrelic/images/custom-config-copy-key.png?fit=max\&auto=format\&n=taSDfrd-ek8zJVcR\&q=85\&s=a7e9a65ab6211f381234ee66e07d77fe)

## Find your Account ID and region

StackOne Hub also needs the New Relic account the key belongs to and the data-center region it\
is hosted in.

**1. Locate your Account ID**

Still on the **API keys** page, read the number in the **Account ID** column of your key's\
row, and paste it into the **Account ID** field in StackOne Hub.

<ul>
  <li>It also appears as the `account` parameter in the page URL when you are logged in, e.g. `one.newrelic.com/admin-portal/api-keys/home?account=1234567`.</li>
  <li>Format: a numeric ID</li>
  <li>Example: `1234567`</li>
</ul>

![API keys table with the Account ID column highlighted](https://mintcdn.com/stackone-60/taSDfrd-ek8zJVcR/connectors/newrelic/images/custom-config-account-id.png?fit=max\&auto=format\&n=taSDfrd-ek8zJVcR\&q=85\&s=62aa72246a17f0042f44fb7d327773b4)

**2. Choose your API Region**

In StackOne Hub, set the **API Region** field to the data center your account is hosted in.

<ul>
  <li>Pick **US (api.newrelic.com)** if you sign in at `one.newrelic.com`.</li>
  <li>Pick **EU (api.eu.newrelic.com)** if you sign in at `one.eu.newrelic.com`.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/newrelic/guides/webhook-setup.md)
>
> Configure receiving Events for New Relic into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.