Hi all,
I have a free ArcGIS Location Platform account and created a public app developer credential with the Basemap styles service privilege enabled. The API key works for other location services, but every request to Basemap Styles v2 returns HTTP 401 with code 498 - "Token Invalid."
Same key, same minute - one works, one doesn't:
WORKS - Geocoding returns HTTP 200:
FAILS - Basemap Styles returns HTTP 401:
{"error":{"code":498,"message":"Token Invalid.","details":["The required authentication information is invalid. The token is either invalid or has expired."]}}
What I already checked and ruled out:
1. Privileges are on. The credential shows "Location services: 8 enabled", and under Basemaps both privileges are enabled, including "Basemap styles service".
2. The key is complete and fresh. I regenerated it and copied the full value from the "Copy your API key" dialog. Note that the settings page afterwards only shows a partial key, which is not usable. The failure happens with the freshly generated key.
3. Not a referrer problem. Same 401 with and without a Referer header.
4. Not the auth mechanism. Same 401 with ?token=, ?apiKey=, Authorization: Bearer and X-Esri-Authorization: Bearer.
5. Not a wrong style path. GET /styles/v2/styles/self lists arcgis/imagery among 78 available styles. Worth noting for anyone debugging this: /styles/self returns 200 even without a token, so it does not prove authentication.
6. Not propagation delay. The 401 persisted over more than 30 minutes of repeated attempts.
7. Other styles fail identically: arcgis/imagery/standard, arcgis/navigation, open/standard.
Question: is there an additional entitlement, activation step or organization-level setting required for the Basemap Styles service on a free Location Platform account? The privilege reads as enabled in the UI, so I would like to understand what is missing - or whether this is a known issue.
Thanks!