PROBLEM
Attempts to access the ArcGIS REST Services Directory page of an item in ArcGIS Online fail, and return the following error:
Error: Token Required
Depending on the cause, choose one of the workarounds below.
Access the ArcGIS REST Services Directory through the View button in ArcGIS Online
On the item's Overview page, click the View button to access the ArcGIS REST Services Directory.
Share the item publicly or to an identified user, or generate tokens for the service URL
To change the item's sharing option, refer to ArcGIS Online: Share items. If the page must be accessible to users outside the shared group, tokens can be generated to allow access. The steps below describe how to generate a token.
https://www.arcgis.com/sharing/generateToken?f=json&username=USERNAME&password=PASSWORD&referer=http://www.arcgis.com
https://services.arcgis.com/123456/arcgis/rest/services/survey123_sample/FeatureServer?token=1234567890
Article ID: 000026829
Get help from ArcGIS experts
Download the Esri Support App