Your New Relic license key is a 40-character hexadecimal string created when you sign up for a New Relic account. It's used to determine which account to send your APM and Infrastructure data to (Mobile and Browser use other keys) and some New Relic features will require you to input it.
To prevent unauthorized access to your data, treat your license key securely.
View and manage your license key
To view the license key for your New Relic account:
- From the account dropdown, select Account settings.
- The license key is on the right side of that page.
Starting December 2019, the license key is a 40-character long string ending in
Keep your license key safe
Your license key uniquely identifies your account and the data it reports to New Relic. Given its importance, you should treat it like a password.
If your license key falls into the wrong hands, an attacker could send fake data to your account, which could trigger false alerts and contaminate your data so that detecting actual issues is more difficult.
Ideas for keeping your license key secure:
- Store your license key in an environment variable instead of hardcoding it in configuration files.
- Scan your code for license keys on a regular basis, using tools like Git Secrets or truffleHog.
- Use a secret sharing tool, like Vault or CyberArk.
Some other products have their own license key:
If you have a Heroku application, you can view your New Relic license key:
- Log in to your Heroku dashboard.
- Select your app, then select Add-ons > New Relic APM.
- From the account dropdown in the New Relic UI, select Account settings.
- From the Account information section, copy your license key.