HubSpot
HubSpot is a leading customer relationship management (CRM) platform that helps businesses manage their sales, marketing, customer service, and operations. With HubSpot, organizations can track customer interactions, manage deals through sales pipelines, create support tickets, and automate marketing campaigns all in one place.
Authentication Types
HubSpot supports 1 authentication method:
- OAuth - Create your own HubSpot app and connect each user with their HubSpot account.
- Pros: Secure, per-user tracking, production-ready, supports all HubSpot features, granular permission control
- Cons: Requires HubSpot admin access to create the app
- Best for: Organizations wanting full control, compliance requirements, and production deployments
Setting up OAuth
To use HubSpot with Webrix, you need to create a HubSpot app and configure OAuth authentication.
1. Create an MCP Auth App
-
Log in to your HubSpot account
-
Click Development in the sidebar
-
Click MCP Auth Apps (Beta)
-
Click Create MCP Auth App
-
Give it a name (e.g., "Webrix Integration")
-
Copy the Redirect URI from Webrix and paste it
tipYou can find the Redirect URI in Webrix when configuring the HubSpot connector under the OAuth settings.
-
Click Create
-
Copy the Client ID and Client Secret from the app details
3. Configure in Webrix
-
In Webrix, go to Integrations → New → Built-in
-
Select HubSpot and click Use
-
Under Authentication Type, select OAuth
-
Paste your Client ID in the Client ID field
-
Paste your Client Secret in the Client Secret field
-
Click Save Changes
4. Test the Connection
-
After saving, click Connect to test the OAuth flow
-
You'll be redirected to HubSpot to authorize the app
-
Select your HubSpot account and click Connect app
-
You'll be redirected back to Webrix with a successful connection
IMPORTANT: Users installing this connector must be a HubSpot Super Admin or have App Marketplace Access permissions in their HubSpot account.
Troubleshooting
Redirect URI Mismatch Error
If you see "redirect_uri_mismatch" error during OAuth authorization.
Cause: The redirect URL configured in your HubSpot app doesn't match the one being used during the OAuth flow.
Solution:
- Copy the exact Redirect URL from Webrix
- Go to your HubSpot app → Auth tab → Redirect URLs
- Ensure the URL is added exactly as shown (including https:// and any trailing slashes)
- Save the changes and try connecting again
Token Refresh Failures
If users are repeatedly prompted to reconnect or get "invalid token" errors.
Cause: The refresh token may have been revoked, or there's an issue with token storage.
Solution:
- Disconnect and reconnect the HubSpot integration in Webrix
- Verify that the app hasn't been uninstalled or had its credentials changed in HubSpot
- Check that your HubSpot app's OAuth settings haven't been modified
"Access Denied" Error
Users see "access_denied" when trying to authorize the app.
Cause: The user doesn't have sufficient permissions in HubSpot, or they clicked "Cancel" during authorization.
Solution:
- Ensure the user has Super Admin or App Marketplace Access permissions in HubSpot
- Try the authorization flow again
- If the issue persists, verify that the HubSpot account is active and in good standing
Rate Limiting
API requests fail with 429 (Too Many Requests) errors.
Cause: HubSpot enforces API rate limits to ensure platform stability. The limits vary by subscription tier.
Solution:
- HubSpot typically allows 100-150 requests per 10 seconds for most APIs
- Implement retry logic with exponential backoff in your workflows
- Consider upgrading your HubSpot subscription for higher rate limits
- Batch operations where possible (e.g., using search APIs instead of multiple get requests)
Missing or Incorrect Object IDs
Errors when trying to associate objects or update records.
Cause: Using the wrong object ID or trying to associate objects that don't exist.
Solution:
- HubSpot object type IDs: Contacts (0-1), Companies (0-2), Deals (0-3), Tickets (0-5)
- Use the search or list tools to find the correct object IDs before associating or updating
- Verify that the object exists in your HubSpot account
- When using associations, ensure both objects exist and you have permission to access them