Documentation Index
Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Connect your users to HubSpot for CRM data, contact management, deal tracking, and marketing automation.| Property | Value |
|---|---|
| Provider ID | hubspot |
| Category | Popular |
| PKCE | Supported |
| Token refresh | Automatic |
| Redirect URI | Shown in Developer Portal |
Step 1: Create a HubSpot OAuth App
Install and authenticate the HubSpot CLI
Install the HubSpot CLI (v7.6.0 or later) and authenticate with
hs init or hs account auth. Apps are now created via the CLI from any standard HubSpot account — the legacy developer-account model was retired in March 2026.Create a new project
Run
hs project create and choose:- Distribution: Marketplace or restricted installation
- Authentication: OAuth (for installation in multiple HubSpot accounts)
Configure OAuth settings
Edit the app’s top-level
app-hsmeta.json file and add the Alter callback URL (from the Developer Portal) to the redirectUrls array. Add the required scopes under auth.requiredScopes. Then run hs project upload to deploy the app to HubSpot.Step 2: Add to Alter Vault
Open the Developer Portal
Go to portal.alterauth.com and navigate to your app.
Enter credentials
- Client ID: Paste your HubSpot Client ID
- Client Secret: Paste your HubSpot Client secret
Available Scopes
| Scope | Description |
|---|---|
crm.objects.contacts.read | Read contact records |
crm.objects.contacts.write | Create, update, and delete contacts |
crm.objects.companies.read | Read company records |
crm.objects.companies.write | Create, update, and delete companies |
crm.objects.deals.read | Read deal records |
crm.objects.deals.write | Create, update, and delete deals |
Notes
- HubSpot enforces granular scopes — request only what your app needs.
- Access tokens are short-lived (~30 minutes). Alter Vault handles automatic refresh using the refresh token.
- See the HubSpot OAuth documentation for more details.