Inbound Marketing, Sales, and Service Software. Use this app to configure your own custom OAuth application.
Go to siteThe HubSpot Developer API provides a wide array of endpoints to manage and automate HubSpot's marketing, sales, and service software features. Using Pipedream, you can connect this API to create custom, serverless workflows that trigger based on events in HubSpot, perform operations on your data, or sync data between HubSpot and other services. This unlocks potential for enhanced lead management, customer engagement tracking, and personalized content delivery, all while reducing manual workload.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hubspot_developer_app: {
type: "app",
app: "hubspot_developer_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hubapi.com/integrations/v1/me`,
headers: {
Authorization: `Bearer ${this.hubspot_developer_app.$auth.oauth_access_token}`,
},
})
},
})
Sync New Contacts to a Google Sheet: Automate the process of adding new HubSpot contacts to a Google Sheet. Each time a new contact is created in HubSpot, a Pipedream workflow triggers and appends the contact's details to your sheet, keeping your records up-to-date without manual entry.
Enrich HubSpot Contacts with Clearbit: When a new contact is added in HubSpot, trigger a Pipedream workflow that uses the Clearbit Enrichment API to gather additional data about the contact. This data is then used to update the contact's profile in HubSpot, providing richer insights for personalized marketing campaigns.
Automate Slack Notifications for Deal Stage Updates: Create a Pipedream workflow that monitors changes to deal stages in HubSpot. Whenever a deal moves to a critical stage, trigger a notification to a specified Slack channel, ensuring your sales team stays informed of deal progress in real-time.
HubSpot (Developer App) uses OAuth authentication. When you connect your HubSpot (Developer App) account, Pipedream will open a popup window where you can sign into HubSpot (Developer App) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any HubSpot (Developer App) API.
Pipedream requests the following authorization scopes when you connect your account:
do not use
GET
https://app.hubspot.com/oauth/authorize
?
client_id={{custom_fields.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{custom_fields.space_separated_scopes}}
POST
https://api.hubapi.com/oauth/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.hubapi.com/oauth/v1/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}