Connect your app to HubSpot
Connect your Lovable workspace to HubSpot using a service key to read and update your CRM records. This lets your apps and Lovable chat manage contacts, companies, deals, and tickets.
Anyone with HubSpot and Lovable admin rights who needs their app to view, create, or update CRM records.
Do this, in order
- 1
In HubSpot, navigate to Development, select Keys, click Service keys, and then click Create service key.
You need a dedicated access key so Lovable can securely communicate with your HubSpot account.
- 2
Name the key, click Add new scope to choose the permissions your app needs (such as reading and writing contacts or deals), click Update, and click Create.
Scopes define exactly what CRM records your app has permission to view or modify.
- 3
Open the newly created service key, click Show, and copy the secret key to your clipboard.
This secret code acts as the password Lovable uses to authenticate API requests.
- 4
In Lovable, navigate to Connectors, select HubSpot, and click Connect.
This opens the integration setup screen in your workspace.
- 5
Enter a display name, paste your service key, configure your sharing preferences, and click Connect.
This validates the credentials and makes the connection available across your workspace projects.
Paste this into your project
Build a lead capture form. Use HubSpot to create or update a contact when someone submits their name, email, and company.
Words decoded
- Service key
- A secure, secret password generated by HubSpot that allows an external tool to access your CRM data.
- Scope
- A specific permission setting that limits what data (like contacts or deals) an external tool can read or write.
- CRM
- Customer Relationship Management software used to track sales, deals, contacts, and customer interactions.
Where people get stuck
- Service keys support REST requests only, meaning your app cannot receive HubSpot webhooks or event subscriptions.
- Requests made by your app count toward your HubSpot plan's API usage limits.
- Only Lovable workspace admins/owners with HubSpot super admin or developer permissions can set up this connection.
- Deleting a connection in Lovable permanently removes credentials and immediately breaks HubSpot features across all linked projects.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.