HubSpot + Steampipe
HubSpot is a CRM platform with all the software, integrations, and resources you need to connect marketing, sales, content management, and customer service. Each product in the platform is powerful on its own, but the real magic happens when you use them together.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
List your HubSpot deals:
select id, created_at, archived, amount, dealname, pipeline, dealstagefrom hubspot_deal;
+-------------+---------------------------+----------+--------+----------+----------+----------------------+| id | created_at | archived | amount | dealname | pipeline | dealstage |+-------------+---------------------------+----------+--------+----------+----------+----------------------+| 13432979812 | 2023-05-24T17:09:39+05:30 | false | 10000 | test | default | appointmentscheduled |+-------------+---------------------------+----------+--------+----------+----------+----------------------+
Documentation
Quick start
Install
Download and install the latest HubSpot plugin:
steampipe plugin install hubspot
Credentials
Item | Description |
---|---|
Credentials | HubSpot requires a Private App Token for all requests. |
Permissions | The permission scope of Private App Tokens is set by the Admin at the creation time of the tokens. |
Radius | Each connection represents a single HubSpot Installation. |
Resolution | 1. Credentials explicitly set in a Steampipe config file (~/.steampipe/config/hubspot.spc )2. Credentials specified in environment variables, e.g., HUBSPOT_PRIVATE_APP_TOKEN . |
Configuration
Installing the latest hubspot plugin will create a config file (~/.steampipe/config/hubspot.spc
) with a single connection named hubspot
:
Configure your account details in ~/.steampipe/config/hubspot.spc
:
connection "hubspot" { plugin = "hubspot"
# The HubSpot Private APP Token. Required. # Get your Private APP token from HubSpot https://developers.hubspot.com/docs/api/private-apps. # Can also be set with the `HUBSPOT_PRIVATE_APP_TOKEN` environment variable. # private_app_token = "pat-na1-70271006-11d8-4a5d-9169-b12f4327e5b"}
Alternatively, you can also use the standard HubSpot environment variable to obtain credentials only if private_app_token
is not specified in the connection:
export HUBSPOT_PRIVATE_APP_TOKEN=pat-na1-70271006-11d8-4a5d-9169-b12f4327e5b
Get involved
- Open source: https://github.com/turbot/steampipe-plugin-hubspot
- Community: Join #steampipe on Slack →