INTEGRATIONS · HUBSPOT · PRIVATE APP SETUP
Audience: Frontline and support staff · Last reviewed: November 30, 2026 (America/Chicago)
Overview #
Connect HubSpot to Frontline AI with a HubSpot private app access token. This is a native Frontline AI integration, rather than a third-party or Zapier-style connector. One connection covers both contact sync and agent functions: your agents can work with the portal’s contacts, deals, and companies, and Frontline AI can keep the records current.
This article covers the HubSpot-side setup and the connection itself: creating the private app, granting the required scopes, copying the access token, and connecting it in the Frontline AI dashboard.
Prerequisites #
- A HubSpot account with Super Admin permissions. Only a Super Admin can create a private app and grant it scopes.
- A Frontline AI account. Creating a CRM connection in Frontline AI requires an Admin or Developer role.
- A HubSpot legacy private app and its access token. HubSpot has renamed the private apps section to Legacy Apps and steers new development toward its newer developer platform. Private apps still work and remain the supported way to connect HubSpot to Frontline AI.
Step-by-step setup #
Step 1: Create a private app in HubSpot #
- In HubSpot, click Development at the bottom of the left sidebar, then select Legacy Apps.
- Click Create legacy app in the top-right corner, then choose Private in the dialog.
- On the Basic Info tab, enter:
- Name — a descriptive name, for example Frontline AI Integration.
- Description — optional, for example “Syncs contacts and logs call activity for Frontline AI”.
| If you don’t see DevelopmentSome accounts still show this section as Private Apps under Settings > Integrations. Look there if Development is not in the sidebar. |
Step 2: Grant scopes #
On the Scopes tab, click Add new scope, search for each scope in Find a scope, check it, then click Update.
Required for contact sync and activity logging:
| Scope | Required for |
| crm.objects.contacts.read | Importing contacts, the connection test Frontline AI runs when you connect, and the contact lookup tools |
| crm.schemas.contacts.read | Reading contact property definitions: field mapping, tool configuration, and every contact read the tools make |
| crm.objects.contacts.write | Outbound sync, logging calls and chats to the timeline, and the contact, note, and task tools |
Also grant these if agents will use deal and company tools:
| Scope | Required for |
| crm.objects.deals.read | The Get Deal and List Contact Deals tools |
| crm.objects.deals.write | The Update Deal tool |
| crm.objects.companies.read | The Get Company and List Contact Companies tools |
| crm.objects.companies.write | The Update Company tool |
| crm.schemas.deals.read, crm.schemas.companies.read | Reading deal and company property definitions, both when you configure those tools and on every read they make |
HubSpot authorizes the note, task, and call engagement endpoints through the contact scopes, so there is no separate engagement scope to grant.
| Warning — grant scopes up frontOnce connected, a missing scope does not flag the connection as broken. HubSpot answers with a 403 rather than rejecting the credentials, and the affected feature can stop working silently. The exception is crm.objects.contacts.read: the connection test reads contacts, so without it connecting fails outright. If a tool fails, the 403 error body names the missing scope (category MISSING_SCOPES). Grant it under Edit app; the tool then starts working without reconnecting. |
Step 3: Generate the access token #
- Click Create app in the top-right corner. Review the confirmation dialog and click Continue creating.
- Click Show token, then copy it. If you need it again later, a Super Admin can reveal it anytime from the app’s Auth tab.
Treat this token like a password. Do not share it in tickets, chat, or screenshots.
Step 4: Connect HubSpot in Frontline AI #
- In the Frontline AI dashboard, open Integrations, select the Available tab, find HubSpot, and click Connect (or Add Account if a connection already exists).
- Fill in the fields:
| Field | Value |
| Connection name | Alias for this connection; prefilled with “HubSpot – API key”. |
| API Key | The private app access token from Step 3. |
- Click Connect (or Add Account if a connection already exists). Frontline AI creates the connection and immediately tests it by reading a page of contacts from HubSpot.
- On success, the dialog reports the connection as verified and offers Set up contact sync. On failure, it shows HubSpot’s own error and re-enables the field so you can paste a corrected token.
- On the Connected tab, the HubSpot connection should show as connected.
Rotating the token or changing scopes later #
To rotate the access token:
- In HubSpot, go to Development > Legacy Apps and click your Frontline AI app’s name. Next to the access token, click Rotate, then choose how the old token expires:
- Rotate and expire later keeps the old token valid for 7 days. Use this option so Frontline AI keeps working while you swap the credential.
- Rotate and expire now kills the old token immediately, so features that depend on the token fail until Frontline AI has the new one.
- In the Frontline AI dashboard, on the Connected tab, open the connection’s settings. The saved token shows masked; paste the new token over it and click Reconnect. Frontline AI verifies the new token before saving, and existing field mappings and synced contacts are left untouched.
To change scopes: Go to Development > Legacy Apps, click your Frontline AI app’s name, then click Edit app in the top-right corner. Adding a scope takes effect without a new token. Removing a scope stops the corresponding Frontline AI feature, without flagging the connection as broken.
Troubleshooting #
Connecting fails with an authorization error #
Confirm the value in the API Key field is the private app access token, not HubSpot’s legacy developer API key or an OAuth client secret. Check that the app has crm.objects.contacts.read, which the connection test needs, and that the token has not been rotated since you copied it.
The connection shows an error after working for a while #
Frontline AI flags a connection as errored when HubSpot rejects the credentials with an HTTP 401. The usual cause is a rotated or deleted token. Open the connection’s settings, paste a current token, and click Reconnect.
A connection is also marked as errored when the connection test fails. Failures caused by a missing field permission or scope can leave the connection looking healthy while that one field or feature quietly stops working. If a specific field or feature isn’t working but the connection looks fine, check permissions and scopes on the HubSpot side rather than the connection itself.
General tips #
- Keep the private app token private. If a token may have been exposed, rotate it in HubSpot using Rotate and expire later, then reconnect in the Frontline AI dashboard.
- If a feature fails after a successful connection, look for a HubSpot 403 / MISSING_SCOPES error and add the missing scope under Edit app rather than assuming the connection is broken.
