<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Invalid token for arcgis api in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-token-for-arcgis-api/m-p/1610286#M4980</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I use the URL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses" target="_blank" rel="noopener"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and an API token from Bruno, it works and provides a response. However, when we execute the same API by registering it into Azure APIM and call it with the Azure APIM endpoint, using the backend URL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses" target="_blank" rel="noopener"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses&lt;/A&gt;, the response code is 200 but the body contains the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": 498,&lt;BR /&gt;"message": "Invalid Token",&lt;BR /&gt;"details": []&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 08:46:31 GMT</pubDate>
    <dc:creator>AppasahebAdekar</dc:creator>
    <dc:date>2025-04-30T08:46:31Z</dc:date>
    <item>
      <title>Invalid token for arcgis api</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-token-for-arcgis-api/m-p/1610286#M4980</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I use the URL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses" target="_blank" rel="noopener"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and an API token from Bruno, it works and provides a response. However, when we execute the same API by registering it into Azure APIM and call it with the Azure APIM endpoint, using the backend URL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses" target="_blank" rel="noopener"&gt;https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses&lt;/A&gt;, the response code is 200 but the body contains the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": 498,&lt;BR /&gt;"message": "Invalid Token",&lt;BR /&gt;"details": []&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-token-for-arcgis-api/m-p/1610286#M4980</guid>
      <dc:creator>AppasahebAdekar</dc:creator>
      <dc:date>2025-04-30T08:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid token for arcgis api</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-token-for-arcgis-api/m-p/1610299#M4981</link>
      <description>&lt;P&gt;Sounds like the token your generating isn't being generated with the proper referer, and therefore does not authenticate when crossing into Azure. You'll need to generate a token with the appropriate referer for the azure service that's consuming it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 11:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-token-for-arcgis-api/m-p/1610299#M4981</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-04-30T11:06:57Z</dc:date>
    </item>
  </channel>
</rss>

