APIs & Integrations

ted12
Miembro

Get access_token and refresh_token Via Postman

resolver

I need to get an authorization code which will be used by a middleware tool (not user interaction, no web browser login, just code).

 

About 3 months ago I used Postman to get an access_token and refresh_token which I can then use in the middleware code.

 

HubSpot OAuth (Authorization Code) no longer seems to work with Postman.  See the image attached.  Any support would be appreciated.  

hubspot_problem.jpg

0 Me gusta
1 Soluciones aceptada
ted12
Solución
Miembro

Get access_token and refresh_token Via Postman

resolver

Problem resolved I needed to include this in the scope "transactional-email oauth".

Ver la solución en mensaje original publicado

5 Respuestas 5
nimishgoray
Miembro

Get access_token and refresh_token Via Postman

resolver

Is there any way to make the flow totally automated? We need to implement a server-server API call and cannot have any manual intervention.

0 Me gusta
MDück
Miembro

Get access_token and refresh_token Via Postman

resolver

Have you found any solution to that?
We're facing the same problem.

0 Me gusta
ted12
Miembro

Get access_token and refresh_token Via Postman

resolver

One more note, when Postman pops open its browser window and presents the hubspot login screen I needed to select the "main" hubstpot account, that is the one used to review billing, reports and so on NOT the developer account which holds the newly created app and client id /secrets used in Postman.  A little counter-intuitive since the app account is what I'm obtaining the acces_token and refresh_token for but once I guessed correctly all worked.

0 Me gusta
IsaacTakushi
HubSpot Employee
HubSpot Employee

Get access_token and refresh_token Via Postman

resolver

Welcome, @ted12.

 

I'm glad you resolved the matter!

 

To clarify, you are actually receiving access and refresh tokens to the production account, not the developer account where your app lives. This mimics a user in a client account granting your app access to their tools and data. Developer accounts do not contain tools like the the website builder and email tool.

Isaac Takushi

Associate Certification Manager
0 Me gusta
ted12
Solución
Miembro

Get access_token and refresh_token Via Postman

resolver

Problem resolved I needed to include this in the scope "transactional-email oauth".