Apr 21, 2021 2:26 PM
We're adding the Tickets API to our platform so our users can see the status of their support cases. I need details of "server-to-server oAuth workflow" for HubSpot APIs integration.
Solved! Go to Solution.
Apr 21, 2021 6:18 PM
Hi @SJasmer,
There are many options to achieve what I imagine you're trying to do. If you mean the OAuth process, it is explained in detail here: https://developers.hubspot.com/docs/api/working-with-oauth
You can also use workflow webhooks to talk to an external server: https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows
Hope that helps!
Apr 21, 2021 6:18 PM
Hi @SJasmer,
There are many options to achieve what I imagine you're trying to do. If you mean the OAuth process, it is explained in detail here: https://developers.hubspot.com/docs/api/working-with-oauth
You can also use workflow webhooks to talk to an external server: https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows
Hope that helps!
Sep 7, 2022 3:49 PM - edited Nov 29, 2022 11:40 AM
Edit: I received a solution on this post https://community.hubspot.com/t5/APIs-Integrations/How-can-I-replace-my-API-key-with-Oauth-and-remai...
Original message:
Hey @tominal , I am struggling with the same issue as @SJasmer , but the documentation you've shared has not gotten me closer to understanding a solution. The part I am not sure about for server-to-server workflows is this, from the "working-with-oauth" link:
Send users installing your app to the authorization URL, where they'll be presented with a screen that allows them to select their account and grant access to your integration. After granting access, they'll be redirected back to your application via a redirect_url, which will have a code query parameter appended to it. You'll use that code and the client secret to get an access_token and refresh_token from HubSpot.
Our app is currently interacting with Hubspot on the backend (no client-side interaction with Hubspot), using a Hubspot API Key. Hubspot API Keys are being sunsetted, so we need to replace it with an alternative (see https://developers.hubspot.com/changelog/upcoming-api-key-sunset)
We cannot migrate to a private app as the documentation I link suggests, so rather, we need to replace API-key authentication with Oauth. Is there a way to do this, completely automated on the server-side without requiring someone to authenticate via a browser?