Skip to main content
HubSpot is a customer relationship management (CRM) platform for managing contacts, companies, deals, and support tickets. When connected, your Lovable apps can read and write CRM data, automate workflows, and build internal tools or dashboards on top of your HubSpot account. 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
HubSpot is a good fit when your app depends on CRM data, sales pipelines, or customer records stored in HubSpot.

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:
  1. Go to HubSpot and set up your account.
  2. Navigate to Development → Keys → Service keys.
  3. Click Create service key.
  4. Enter a descriptive name, for example Lovable integration.
  5. Click Add new scope and select the scopes your app needs. For example:
    • crm.objects.contacts.read and crm.objects.contacts.write
    • crm.objects.deals.read and crm.objects.deals.write
  6. Click Update after selecting scopes and review the selected scopes.
  7. Click Create, then confirm in the dialog box.
  8. Open the service key you created, and click Show to reveal the key.
  9. 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.
See HubSpot docs for detailed instructions: Service keys.

Step 2: Connect HubSpot to Lovable

You can create multiple connections using different service keys. To connect HubSpot:
  1. Go to Connectors and select HubSpot.
  2. Click Add connection.
  3. Display name: name the connection, for example HubSpot Prod.
  4. Service key: enter your HubSpot service key (pat-xxxx…).
  5. 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.
  6. Click Connect.
When connected, your Lovable apps can access CRM data and manage contacts, deals, and other HubSpot objects.

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.