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

#9

Wow, this really needs to be documented better in the Getting Started documentation.

I was confused because there are at least 3 different API keys one could choose to use: the infrastructure API integration API key, an administrator API key, and your normal user API key. And the error message is not very helpful at all.

Lastly, the comment (and resulting reply):

What is an account slug?

also really needs to make it’s way into the Getting Started documentation. In the end, the reply, was somewhat helpful. In my case, it was just my organization’s account name, but I didn’t have to munge it in any way. So some clear and straight-forward documentation on that would be greatly appreciated.

Now, after I finally used the right key, alas, I get yet another error – need to accept T&C. BUT–there’s another forum topic on that, so I’ll go check over there.

All in all, not a very good starting experience for creating my first Nerdlet/Nerdpack. Hopefully it’ll be smoother sailing from here on in.


#10

Thanks for sharing the feedback on your, not ideal, starting experience.

I hope you’re at least up and running passed that T&C problem, if not let us know.

I’ll get your feedback passed over to the right people. :slight_smile:


#11

I’m not up and running yet. I have an open forum question about “Port 9973 busy”.

UPDATE I see you’ve repiled to that question. I’ll take a look there. Thanks for following up!!


#12

Somewhat closing the loop on this thread, a current belief is that Craig’s ISP may be blocking ports, disallowing the ability to locally serve nerdpacks.

That conversation continues here: