Select to view content in your preferred language

Silly question: Right place to generate API KEY for REST endpoints

373
1
02-12-2026 12:26 PM
Labels (2)
JohnJames9
New Contributor

I'm sorry to ask such a simple question, but the system seems to fluctuate between liking me and not liking me.

I logged in as a developer, went to my dashboard, and generated a new API Key. I had this working for a bit, but then made some minor changes in code, returned, and am now getting an error 498. I verified an expiration date of a year from now, and the system even doesn't show the key being used at all, which I know to be incorrect.

I regenerated the key, replaced it, but it's still failing the same way.

One thought I had when reading about is that perhaps the key generation is not valid with the endpoint I'm using:

https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer/getSample...

It's just a thought. I'm new to ESRI, and I'm surprised I cannot see any utilization when I know I was making several calls successfully earlier. At this point, the location services API key being invalid for this endpoint is a guess, but it might also explain why I see no traffic.

I'm not new to programming, not new to REST, not new to so many things, but ESRI seems to be easy - once you know the secret. I'm secret poor right now....

Thanks in advance.

 

0 Kudos
1 Reply
ErikRose
Occasional Contributor

A couple things to check:

  • Make sure you create the key on your AGOL account.  If you create an API key in your Enterprise portal, AGOL will not be able to see it, and vice versa.
  • Make sure you have permissions for the operations performed in your script assigned to the key.

I also find the usage statistics on my API keys a little odd, sometimes seeming not to register usage, although the scripts I use definitely exercise the keys.

0 Kudos