Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Programmability - which API key to use?


#1

Hi,

Are the API keys that are created available for APIs within the EU? I see that most of the API keys created within the Build New Relic One applications nerdlet begin with NRAK-***, and these will not work (charts return a HTTP 403 response trying to access https://chartdata.service.eu.newrelic.com/v2/nrql), whereas there is one API key that starts with IRL***, which returns a populated chart. I have no idea how this API key was created, or where it was created, and I suspect the API keys aren’t being generated for the EU/correct region.


Workshop - Setup Your Environment
#2

@jennifer.miggin - Could you try create an API key here:

https://rpm.newrelic.com/accounts/{yourAccountID}/integrations?page=api_keys

Then see if that API key shows up in the NR1 Nerdpack set up page?

Note API keys aren’t typically recognisable per location. License keys are, as in the EU they begin with EU01XX, API keys don’t have that identifier. For example, my EU account’s Admin API key begins with: 2413fa6


#3

Hi Ryan,

Any keys created on the API page you linked to don’t appear on the Nerdpack setup page, and any keys created on the Nerdpack setup page don’t appear on the API page, either under Admin API or REST API.

The only API key I could get to work with the nerdpacks is the one starting with IRL*** , but I don’t see this key listed anywhere amongst my accounts, perhaps this is because the Nerdlet setup page uses some sort of hashing.


#4

Hi @jennifer.miggin - could you try using the API key that was created on the page that Ryan referred you to in the CLI. Even though it’s not showing in the developer center you should be able to create a profile and start creating Nerdpacks.

NR1 CLI command: `nr1 profiles:add --name {your-account-slug} --api-key {your-api-key} --region eu


#5

@jsius, thanks for the response.

I found the API keys in the NR UI here: https://account.newrelic.com/accounts/{yourAccountID} , once in there, I selected Users > myUser > API keys.

I created an API key in there, and now I can use this to create my Nerdlet for that account.

These are different to the API keys located at: https://rpm.newrelic.com/accounts/{yourAccountID}/integrations?page=api_keys


#6

Interesting! We’ll make sure we look into documenting that. Thanks @jennifer.miggin


#7

What is an account slug?


#8

Hey @asavage -

The Account Slug is just the account name concatenated together, so - where my account is called:

Ryan Veitch - Testing Account

My account slug is:

ryan-veitch-testing-account