<?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 Re: AccessToken Information Endpoint not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/1038398#M76469</link>
    <description>&lt;P&gt;We are using the NodeJS SDK and we're using the function `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hubspotClient&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;accessTokensApi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This function throws an error when we pass the access token like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;```&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hubspotClient&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;accessTokensApi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get(user.hubspotAccessToken)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;BR /&gt;The variable `user.hubspotAccessToken` is 100% valid and we use the literally same variable for all other requests when instantiating the client.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I debugged your code and the `get` function from your client is trying to make a request to the following endpoint (which looks correct)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This is the path I can see from the debugger.&lt;/P&gt;&lt;P&gt;'/oauth/v1/access-tokens/pat-eu1-censored-rest-of-access-token'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you tell me what I can do?!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 14:10:12 GMT</pubDate>
    <dc:creator>FG_</dc:creator>
    <dc:date>2024-09-09T14:10:12Z</dc:date>
    <item>
      <title>AccessToken Information Endpoint not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/399997#M39538</link>
      <description>&lt;P&gt;The following end point is not working for me&lt;/P&gt;&lt;PRE&gt;https://api.hubapi.com/oauth/v1/access-tokens/{ACCESS_TOKEN}}&lt;/PRE&gt;&lt;P&gt;Postman has the following reponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "The access token must have the correct format",&lt;BR /&gt;"correlationId": "a0d2c7fb-9edf-4822-a924-8b931ffe9d90"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know Access Token is good since I use the Access Token for standard API requests and I do not have an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I am generating the Oauth2 Access Token&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/oauth2/get-access-token-information" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/oauth2/get-access-token-information&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 00:12:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/399997#M39538</guid>
      <dc:creator>Mkhurshid</dc:creator>
      <dc:date>2021-01-15T00:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: AccessToken Information Endpoint not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400241#M39558</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158402"&gt;@Mkhurshid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you still having this issue?&amp;nbsp; I just did a test and did not encounter this error&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/67091"&gt;@prosa&lt;/a&gt; , have you ever experienced this?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 15:51:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400241#M39558</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-01-15T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: AccessToken Information Endpoint not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400430#M39578</link>
      <description>&lt;P&gt;Yes I am still having an issue. Can you share the cURL. It simply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 07:48:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400430#M39578</guid>
      <dc:creator>Mkhurshid</dc:creator>
      <dc:date>2021-01-16T07:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: AccessToken Information Endpoint not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400432#M39579</link>
      <description>&lt;P&gt;Nevermind works like a charm, I had an underscore in the URL instead of a dash &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 07:55:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/400432#M39579</guid>
      <dc:creator>Mkhurshid</dc:creator>
      <dc:date>2021-01-16T07:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: AccessToken Information Endpoint not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/1038398#M76469</link>
      <description>&lt;P&gt;We are using the NodeJS SDK and we're using the function `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hubspotClient&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;accessTokensApi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This function throws an error when we pass the access token like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;```&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hubspotClient&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;accessTokensApi&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get(user.hubspotAccessToken)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;BR /&gt;The variable `user.hubspotAccessToken` is 100% valid and we use the literally same variable for all other requests when instantiating the client.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I debugged your code and the `get` function from your client is trying to make a request to the following endpoint (which looks correct)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This is the path I can see from the debugger.&lt;/P&gt;&lt;P&gt;'/oauth/v1/access-tokens/pat-eu1-censored-rest-of-access-token'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you tell me what I can do?!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 14:10:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/AccessToken-Information-Endpoint-not-working/m-p/1038398#M76469</guid>
      <dc:creator>FG_</dc:creator>
      <dc:date>2024-09-09T14:10:12Z</dc:date>
    </item>
  </channel>
</rss>

