I'm trying to use the basemapstyles API to fetch basemaps but I keep getting the following error
{
"error": {
"code": 498,
"message": "Token Invalid.",
"details": [
"The required authentication information is invalid. The token is either invalid or has expired."
],
"restInfoUrl": "https://basemapstyles-api.arcgis.com/arcgis/rest/info"
}
}
I have verified that the API key has access to the correct permissions and also verified that the referrer URLs are correct. Please let me know if there's a way to fix this error.