With HubSpot, your app can:
- Access and manage CRM contacts, companies, and deals
- Create and track sales pipelines and deal stages
- Automate CRM workflows and sales processes
- Retrieve analytics and reporting data
- Manage tickets and customer service interactions
Common use cases and example apps
How to connect HubSpot
Workspace admins and owners can connect HubSpot. You can create multiple HubSpot connections using different service keys. This is useful for separating environments (for example, development and production) or limiting access through scoped permissions. When the connection is created, HubSpot becomes available across all projects in the workspace.Prerequisites
Before connecting HubSpot, make sure you have:- A HubSpot account with super admin access or developer tools permissions (required to create service keys)
- A HubSpot service key
- Lovable workspace owner or admin role
All API requests made through this connector count toward your HubSpot API usage limits. Limits depend on your HubSpot subscription and are managed by HubSpot, not Lovable.
Step 1: Create a HubSpot service key
A service key allows Lovable to securely access your HubSpot account through the HubSpot API. To create a HubSpot service key:- Go to HubSpot and set up your account.
- Navigate to Development → Keys → Service keys.
- Click Create service key.
- Enter a descriptive name, for example
Lovable integration. - Click Add new scope and select the scopes your app needs. For example:
crm.objects.contacts.readandcrm.objects.contacts.writecrm.objects.deals.readandcrm.objects.deals.write
- Click Update after selecting scopes and review the selected scopes.
- Click Create, then confirm in the dialog box.
- Open the service key you created, and click Show to reveal the key.
- Click Copy to copy it to your clipboard.
Your service key functions like a password. Keep it secure and never share it publicly. You’ll need it in the next step.
Step 2: Connect HubSpot to Lovable
You can create multiple connections using different service keys. To connect HubSpot:- Go to Connectors and select HubSpot.
- Click Add connection.
- Display name: name the connection, for example
HubSpot Prod. - Service key: enter your HubSpot service key (
pat-xxxx…). - Who can access this connection: keep access limited to specific people or invite entire workspace. See Who can use connections and clients for more information.
- Click Connect.
Limitations
The HubSpot connector uses service keys for authentication, which support REST API requests only. Service keys cannot:- Receive HubSpot webhooks or event subscriptions
- Authenticate calls within HubSpot UI extensions
Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.