I have created an app using OAuth, now what


#1

I have created an app using OAuth, now what do I do to get any Hubspot account to integrate with it. I see that I can generate an API key, but that does me no good since I need a client ID and secret generated.

Can anyone help?


#2

@jsimone Once you have an app created you need to install it to your portal. If you log into your dev portal you can grab the client secret and ID there. Then you can use OAuth to install it to whichever portal you can authenticate into.

Here is the endpoint you want to hit.

https://app.hubspot.com/oauth/authorize


#3

Yes Peter, I have already done so. I logged into my dev portal, grabbed
the client ID and secret and use those to OAuth with. All this has been
working for a couple of months now.

My question is: How do I get this app to our Hubspot customers? I
realize they can go into their CRM accounts and generate an API key, but my
code used OAuth - as recommended in the API docs - it does not make use of
passing in the API key on the URL.

I asked if I needed to be a Hubspot connect partner and I was told no, I
did not have to be.


#4

@jsimone Are you looking to copy it to their dev portal or to install it to their marketing portal?


#5

-> " Are you looking to copy it to their dev portal or to install it to
their marketing portal?"

Neither. Why do you assume that a Hubspot CRM customer would have either
a dev portal - they are not developers - or a marketing portal - they are
CRM customers only?

Why would the developer API suggest I use OAuth and then not allow me get
access to the client ID and secret? What am I missing here? First I was
told to become a hubspot connect partner, then I was told I did not need
to be. Can you please call me at — to help me understand what
is going on?

joe


#6

@jsimone If you have some availability later this week I can hop on the phone to try and sort this out.

If it helps clear anything up a portal does not have a client ID or a secret. An app does.

There is a chance we might be mixing up a few things. Let me know what your availability is tomorrow or Friday.


#7

So, if I understand you correctly - the client ID and secret generated by my dev portal and assigned to my app is good for ALL Hubspot CRM accounts. This implies the same credentials authenticate to any users account?

This is certainly very different from our Salesforce integration. In that integration, each salesforce account generates unique client ID and secret and those credentials are then used to provision the OAuth in our app integration.

I am available today and tomorrow. Thanks for your help. It is appreciated.


#8

@jsimone
Yes the client ID and secret is for the app and is good for all crm accounts. You will need to authenticate into the CRM account via your normal login when you go through the oauth flow to “install” the app to that crm account/portal. Right now I have an open block from 1-3 tomorrow afternoon EST. Would a half hour call work for you during that time?


#9

Ok, mystery solved. The client ID and secret is for the app and is good for all CRM accounts. No need to call.


#10

@jsimone sounds good, if you get stuck anywhere on installing it to a portal please let me know.