Set up HubSpot
alphaSetup guide coming soon. HubSpot has no step-by-step guide in the catalogue yet. Until it does, here is what a connection needs, and where to read more.
What a connection holds
| Field | Secret | Where it comes from |
|---|---|---|
App client IDclientId | Not secret | From your HubSpot app's Auth tab. ONE value for the whole installation -- the same app serves every connected account. |
App client secretclientSecret | Secret | From the same Auth tab. Used to exchange the code and to refresh; never sent with an API request. |
Access tokenaccessToken | Secret | Obtained by the host's OAuth exchange, PER CONNECTED ACCOUNT. Expires after 30 minutes -- a host that does not refresh will work all afternoon and be broken by morning. This connector's scope list covers every action, read and write, and is not what your consent URL must ask for: HubSpot requires your app's required scopes in the authorize URL's `scope` parameter and shows an error otherwise, so build it from your own app's configuration. A read-only host asks for its read scopes only. |
Refresh token (optional)refreshToken | Secret | Also per account. Does not expire, so it is the credential worth protecting most: it mints access tokens indefinitely until the install is revoked. |
Links
HubSpot API docs
Consent is requested at https://app.hubspot.com/oauth/authorize
React (editor surface, every host)
@particle-academy/hubspot-ui v0.7.1Python
fancy-hubspot v0.7.1
