<?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 connection issue. Cloudflare in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128989#M81239</link>
    <description>&lt;P&gt;Here's my troubleshooting steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Check to make sure your request is formatted correctly with all required headers.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl --request POST 'https://api.hubapi.com/oauth/v1/token' \
  --header 'Content-Type: application/x-www-form-urlencoded;charset=utf-8' \
  --data 'grant_type=authorization_code&amp;amp;client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;amp;client_secret=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy&amp;amp;redirect_uri=https://www.example.com/&amp;amp;code=zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Check that Content-Type is included in your headers. It's commonly missed, and is commonly set wrong. This endpoint is different than all the other API endpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Make sure the redirect_uri matches what you put in your app. HubSpot is strict about this so a https/http error can cause a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 15:27:53 GMT</pubDate>
    <dc:creator>Bortami</dc:creator>
    <dc:date>2025-03-28T15:27:53Z</dc:date>
    <item>
      <title>API connection issue. Cloudflare</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128978#M81238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/oauth/v1/token," target="_blank" rel="noopener"&gt;https://api.hubapi.com/oauth/v1/token,&lt;/A&gt;&amp;nbsp;I have populated grant_type: authorization_code, client_id, client_secret, redirect_uri: &lt;A href="http://localhost," target="_blank" rel="noopener"&gt;http://localhost,&lt;/A&gt;&amp;nbsp;code.&lt;BR /&gt;&lt;BR /&gt;Using postman. The error is 400 Bad Request, cloudflare. I have no idea what this means. I have a colleague who has run this&amp;nbsp; test in Google Colabs. His return worked. Same information.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas why this would be?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gav&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:15:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128978#M81238</guid>
      <dc:creator>GCheal</dc:creator>
      <dc:date>2025-03-28T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: API connection issue. Cloudflare</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128989#M81239</link>
      <description>&lt;P&gt;Here's my troubleshooting steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Check to make sure your request is formatted correctly with all required headers.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl --request POST 'https://api.hubapi.com/oauth/v1/token' \
  --header 'Content-Type: application/x-www-form-urlencoded;charset=utf-8' \
  --data 'grant_type=authorization_code&amp;amp;client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;amp;client_secret=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy&amp;amp;redirect_uri=https://www.example.com/&amp;amp;code=zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Check that Content-Type is included in your headers. It's commonly missed, and is commonly set wrong. This endpoint is different than all the other API endpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Make sure the redirect_uri matches what you put in your app. HubSpot is strict about this so a https/http error can cause a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:27:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128989#M81239</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2025-03-28T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: API connection issue. Cloudflare</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128999#M81242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, this I have done, and I still get the error.&lt;BR /&gt;I think I have a much larger problem, being that I want to do an automated run daily to extract data using ADF. It seems this is not possible due to the expiring of certain keys. These keys can only be manually retrieved. Is this right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:50:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1128999#M81242</guid>
      <dc:creator>GCheal</dc:creator>
      <dc:date>2025-03-28T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: API connection issue. Cloudflare</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1129001#M81244</link>
      <description>&lt;P&gt;Are you building a public app or a private app for just internal use?&lt;/P&gt;
&lt;P&gt;If you're building an internal app, you can use a Private App key with ADF and skip the need to do the OAuth exchange.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:55:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1129001#M81244</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2025-03-28T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: API connection issue. Cloudflare</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1129785#M81275</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am using ADF, first I tried the web activity as I wanted to get a list of all that was in scope and then loop through this list.&lt;BR /&gt;I have also tried using the linked service and hardcoded the required field. As getting them from the vault was not working. It seems hardcoding is also not working.&lt;BR /&gt;I am now getting a 403 error. So this means that I am not permitted to have access.&lt;BR /&gt;So this maybe progress.&lt;BR /&gt;Even with the 4 pieces of information do I also need the IP of ADF to be allowlisted. Or is there a handshake for this also to let this connect?&lt;BR /&gt;Sorry for all of the questions, I have no experience wirh Hubspot at all.&lt;BR /&gt;&lt;BR /&gt;I have just got what you mean by Public and Private, this is the Hubspot app.&lt;BR /&gt;I don't have access to this, but I have a contact that does. Is it this that is creating the problems. They are new to Hubspot also, and I am trying to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 15:24:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-connection-issue-Cloudflare/m-p/1129785#M81275</guid>
      <dc:creator>GCheal</dc:creator>
      <dc:date>2025-03-31T15:24:08Z</dc:date>
    </item>
  </channel>
</rss>

