Set up HubSpot authorization for Postman Flows
To run Postman Flows templates that use HubSpot, you need to set up authorization between HubSpot and Postman. You can do this by creating a private app in HubSpot and storing its access token as an environment variable in Postman.
If you plan to use flow templates that use HubSpot with Stripe, more configuration is required. See Create custom properties for Stripe.
Before you get started, you need:
- A HubSpot account
- A Postman environment to run the flow
Create a private HubSpot app
To create and configure a private HubSpot app to use with Postman Flows, do the following:
-
Log in to your HubSpot account.
-
Navigate to Settings > Integrations > Private Apps, and then select Create a private app. For detailed instructions, see the HubSpot documentation.
-
Select the Scopes tab, and then select Add new scope.
-
Select the checkboxes for the following scopes, based on the HubSpot events you want the flow to access:
-
Select Update.
-
Select the checkboxes for the following subscriptions, based on the HubSpot events you want the flow to access:
-
Select Create app.
-
After your app is created, select the app and navigate to Auth.
-
Select Show token to reveal your app’s access token. Select Copy, and then save it as a variable in your Postman environment named
HubSpot_Access_Token.
Create custom properties for Stripe
To configure HubSpot to process data from Stripe, create new properties in HubSpot based on the flows you plan to run.
Add new Stripe customers to HubSpot
To configure HubSpot to process data from Stripe about new customers, do the following:
-
In HubSpot, navigate to Settings > Properties.
-
Select Contact properties > Create property.
-
Create the following custom property:
Add new Stripe subscriptions to HubSpot contacts list
To configure HubSpot to process data from Stripe about new subscriptions, do the following:
-
In HubSpot, navigate to Settings > Properties.
-
Select Contact properties > Create property.
-
Create the following custom property:
-
Navigate to CRM > Lists > Create List.
-
Select Static list. Enter a name for the list and then save.
-
After saving, open the list details and locate the List ID.
-
Copy the ID, and then save it as a variable named
HubSpot_Contact_List_IDin your Postman environment.
Create HubSpot deals for new Stripe invoices
To configure HubSpot to process data from Stripe about new invoices, do the following:
-
In HubSpot, navigate to Settings > Properties.
-
Select Contact properties > Create property.
-
Create the following custom property:
-
Select Deal properties > Create property.
-
Create the following custom properties:
Create or update HubSpot contacts for new Stripe subscriptions
To configure HubSpot to process data from Stripe about new subscriptions, do the following:
-
In HubSpot, navigate to Settings > Properties.
-
Select Contact properties > Create property.
-
Create the following custom property:
Create or update HubSpot contacts with new Stripe payments
To configure HubSpot to process data from Stripe about new payments, do the following:
-
In HubSpot, navigate to Settings > Properties.
-
Select Contact properties > Create property.
-
Create the following custom properties:
Next steps
After you’ve completed your HubSpot configuration, you can return to the flow template or set up authorization for another integration in Postman.