When I go to the URL on a hosted items detail page, the page that comes up only says Token Required. For the moment, I'm simply just trying to get the data in JSON format using the URL formats shown in get feature layer data:
https://developers.arcgis.com/documentation/mapping-apis-and-services/data-hosting/hosted-feature-layers/#get-feature-layer-data
I've been able to get feature layer data in this format before but I've never attempted it with a hosted layer. The internet has given me a variety of solutions but nothing has worked so far.

Any suggestions and/or a clear explanation on what is happening would be very much appreciated.
Thanks!