<?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: API Key not working in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712643#M58324</link>
    <description>&lt;P&gt;It took me a while to understand, but the Access Token does not behave like an API Key. It behaves like an OAuth token. For example, if you try out one of the examples in the API documentation, you need to check OAuth instead of API (actually I just checked, and they've added a third option: Private App Access token ;-))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're like me and very unclear on authentication protocols, I'd suggest looking at the API Doc and/or trying to set up tests via Postman. It's great to understand what's going on.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 08:01:47 GMT</pubDate>
    <dc:creator>PAtlan</dc:creator>
    <dc:date>2022-11-01T08:01:47Z</dc:date>
    <item>
      <title>API Key not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712289#M58285</link>
      <description>&lt;P&gt;I just made a new private app, replaced my old API key with the new Access Token and It's just not working and Is not connecting my site with hubspot. Is the API URL still&amp;nbsp;&lt;A href="https://api.hubapi.com" target="_blank"&gt;https://api.hubapi.com&lt;/A&gt;&amp;nbsp;? Or did i need to do anything more then just make a private app?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:19:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712289#M58285</guid>
      <dc:creator>AAwachi</dc:creator>
      <dc:date>2022-10-31T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: API Key not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712387#M58299</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/469857"&gt;@AAwachi&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; One question — how are you including your Private App key for authorization? Private App keys are &lt;STRONG&gt;not&lt;/STRONG&gt; included in the request URL. You'll need to include it in the request header. Here is more information:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/auth/oauth-overview" target="_blank" rel="noopener"&gt;Authentication Overview&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/oauth2/using-access-tokens" target="_blank" rel="noopener"&gt;Using OAuth 2.0 access tokens&lt;/A&gt; (applies to Private Apps)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you are including your Private App as a bearer token in the Authorization http header, can you share an example request and response, please? Along with the specific endpoint you are using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:12:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712387#M58299</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-10-31T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: API Key not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712402#M58301</link>
      <description>&lt;P&gt;Same issue for me also. i am calling from Asp.net core&amp;nbsp; Skarp.HubSpotClient library like this&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;_hubspotContactClient = new HubSpotContactClient("token");&lt;/P&gt;&lt;P&gt;_hubspotContactClient.GetByIdAsync&amp;lt;MyModelClass&amp;gt;(12345);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:36:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712402#M58301</guid>
      <dc:creator>jparakkalli</dc:creator>
      <dc:date>2022-10-31T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: API Key not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712643#M58324</link>
      <description>&lt;P&gt;It took me a while to understand, but the Access Token does not behave like an API Key. It behaves like an OAuth token. For example, if you try out one of the examples in the API documentation, you need to check OAuth instead of API (actually I just checked, and they've added a third option: Private App Access token ;-))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're like me and very unclear on authentication protocols, I'd suggest looking at the API Doc and/or trying to set up tests via Postman. It's great to understand what's going on.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 08:01:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712643#M58324</guid>
      <dc:creator>PAtlan</dc:creator>
      <dc:date>2022-11-01T08:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: API Key not working</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712646#M58325</link>
      <description>&lt;P&gt;I just added it here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAwachi_1-1667289963589.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/78171iFF8E49E6033588D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAwachi_1-1667289963589.png" alt="AAwachi_1-1667289963589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The old API key worked when I had it placed in the Access Key section but know when I am using private apps and paste the new access key in it's just not connecting, is the code need to be different?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 08:06:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Key-not-working/m-p/712646#M58325</guid>
      <dc:creator>AAwachi</dc:creator>
      <dc:date>2022-11-01T08:06:09Z</dc:date>
    </item>
  </channel>
</rss>

