APIs & Integrations

RBunch
Participant

Hubspot API connection with Make

SOLVE

Hello, 

 

I'm trying to log my hubspot dev account to Make HTTP request OAuth module to retrieve deals info  from a specific pipeline. But it seem that I systematically fail to connect. 

 

My Make set-up 

  • Flow type : Authorisation code
  • Authorize URI : Installation url (OAuth) (containing the original credential+clientID+ redirect url
  • Token URI: url from API key
  • Scope: No scope selected
  • Client ID
  • Client Secret

Which info am I missing to grant the access ? 

I search through Make and Hubspot documentation but it wasn't that helpful. 

 

Anybody able to help ? 

 

thanks

0 Upvotes
2 Accepted solutions
coldrickjack
Solution
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch,

 

I've been able to successfully do this in the past using the credentials below within the HTTP module in Make. You will also need to specify a scope for crm.objects.deals.read if you want to retrieve deal information. The scopes you use depend on what information you want to interact with in HubSpot. Full list of HubSpot scopes here.

 

Flow Type: Authorization Code
Authorize URI: https://app.hubspot.com/oauth/authorize
Token URI: https://api.hubapi.com/oauth/v1/token
Scopes: crm.objects.deals.read
Client ID: YOUR_HUBSPOT_APP_CLIENT_ID
Client Secret: YOUR_HUBSPOT_APP_SECRET

 

Another important thing you need to do is ensure you set the redirect URI within the HubSpot App settings to: 

 

https://www.integromat.com/oauth/cb/oauth2

 

Once done you'll see in the screenshot my successful connection returing some deal information:

 

Screenshot 2023-08-03 at 12.51.37.png

 

Obviously depending on what endpoint you are using you'll likely receive a different response. I opted to use the GET /crm/v3/objects/deals to pull all deals from the portal. Also if you are using more than one scope you need to ensure you set the scope seperator value to "SPACE". This is found by toggling the "Show advanced settings" option in make.

 

Screenshot 2023-08-03 at 12.54.53.png

View solution in original post

0 Upvotes
coldrickjack
Solution
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch,

I'm not entirely sure to be honest with you. What I've done is recorded a short 6 minute video where I run through my entire configuration of the HTTP module in Make. It might help you to see where you might be going wrong:

 

https://share.vidyard.com/watch/udtKE3TdeHkYj4cvYpcVnj?

 

Let me know how you get on with this and we'll go from there!

View solution in original post

9 Replies 9
Nagarjoon
Member

Hubspot API connection with Make

SOLVE

It sounds like you're encountering some difficulties connecting your HubSpot developer account to make HTTP requests using OAuth. Double-checking your setup is crucial. Firstly, ensure that your authorization flow type is set correctly to "Authorization code" as you've mentioned. Confirm that the Authorization URI is pointing to the installation URL provided by HubSpot's OAuth process, containing your credentials, client ID, and redirect URL. The Token URI should correspond to the URL provided for your API key. Ensure that you've correctly input your Client ID and Client Secret obtained from your HubSpot developer account. Additionally, make sure that you've selected the appropriate scopes required for accessing the deals information from the specific pipeline. If after verifying these details you're still facing issues, it might be helpful to reach out to HubSpot's support for further assistance, as they can provide more specific guidance tailored to your setup.

0 Upvotes
RBunch
Participant

Hubspot API connection with Make

SOLVE

Hi @coldrickjack

I can't thank you enough for your video. I had to start the process from the beginning, but it worked in the end. I'm successfully logged 🎉

 

Thanks a lot

coldrickjack
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch, I'm glad to hear that it helped! 😁

ZahidZC
Participant

Hubspot API connection with Make

SOLVE

@coldrickjack I just wanted to say thank you for posting the video. I didnt use it exactly but it was helpful. Very kind of you to take the time and effort. 

coldrickjack
Solution
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch,

 

I've been able to successfully do this in the past using the credentials below within the HTTP module in Make. You will also need to specify a scope for crm.objects.deals.read if you want to retrieve deal information. The scopes you use depend on what information you want to interact with in HubSpot. Full list of HubSpot scopes here.

 

Flow Type: Authorization Code
Authorize URI: https://app.hubspot.com/oauth/authorize
Token URI: https://api.hubapi.com/oauth/v1/token
Scopes: crm.objects.deals.read
Client ID: YOUR_HUBSPOT_APP_CLIENT_ID
Client Secret: YOUR_HUBSPOT_APP_SECRET

 

Another important thing you need to do is ensure you set the redirect URI within the HubSpot App settings to: 

 

https://www.integromat.com/oauth/cb/oauth2

 

Once done you'll see in the screenshot my successful connection returing some deal information:

 

Screenshot 2023-08-03 at 12.51.37.png

 

Obviously depending on what endpoint you are using you'll likely receive a different response. I opted to use the GET /crm/v3/objects/deals to pull all deals from the portal. Also if you are using more than one scope you need to ensure you set the scope seperator value to "SPACE". This is found by toggling the "Show advanced settings" option in make.

 

Screenshot 2023-08-03 at 12.54.53.png

0 Upvotes
RBunch
Participant

Hubspot API connection with Make

SOLVE

Hello @coldrickjack , 

 

I've partially succeeded in logging into my account. I now have an error message talking about my domain 😭


Unable to complete connection
An invalid application domain name has been supplied. Please get in touch with the application developer.

I don't understand what's the issue here. I've followed every step you and the documentation said. 

Do you have any idea? 

0 Upvotes
coldrickjack
Solution
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch,

I'm not entirely sure to be honest with you. What I've done is recorded a short 6 minute video where I run through my entire configuration of the HTTP module in Make. It might help you to see where you might be going wrong:

 

https://share.vidyard.com/watch/udtKE3TdeHkYj4cvYpcVnj?

 

Let me know how you get on with this and we'll go from there!

RBunch
Participant

Hubspot API connection with Make

SOLVE

@coldrickjack First of all, 

 

Thank you very very much for the time you took to do this video! It is very appreciated, and your explanations were very clear! 

 

You definitely should launch your Youtube channel! 

 

I think I will start everything over because some of my access is restricted and I must go through someone to be able to go through the dev portal. 

 

I'll keep you posted on this one. And again thanks a bunch 🙏 

coldrickjack
Guide

Hubspot API connection with Make

SOLVE

Hi @RBunch,

 

No problem at all, I'm glad it helped and wishing you best of luck with the project moving forward! Please do let me know how it goes! 😁

0 Upvotes