APIs & Integrations

SJasmer
Member

Oauth

SOLVE

 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.

 

 

1 Accepted solution
tominal
Solution
Guide | Partner
Guide | Partner

Oauth

SOLVE

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!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com

View solution in original post

2 Replies 2
tominal
Solution
Guide | Partner
Guide | Partner

Oauth

SOLVE

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!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
mobyvb
Participant

Oauth

SOLVE

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?