How do I connect HubSpot to Discera with a token (Service Key or private app)?

Integrations / HubSpot·May 31, 2026·3 min·By Discera Team

Updated Jul 18, 2026

Create a HubSpot Service Key (or private app) with five read-only scopes, copy the token, and paste it into Discera. Under two minutes.

TL;DR

Create a read-only HubSpot credential — a Service Key (recommended) or a private app — with five scopes, copy the token (a value starting pat-…), and paste it into Discera under /settings → Integrations → HubSpot. The integration is live on save. Nothing is ever written back to your CRM.

What Discera reads (and never writes)

Discera reads your deals (stage, amount, close date, owner), the companies and contacts associated with each deal (for industry, company size, and the buying committee), and your owners (so reports show the rep's name instead of an ID). Every scope is read-only — Discera cannot create, edit, or delete anything in your HubSpot.

The five scopes, either way:

  • ·crm.objects.deals.read
  • ·crm.schemas.deals.read
  • ·crm.objects.companies.read
  • ·crm.objects.contacts.read
  • ·crm.objects.owners.read

HubSpot's newer credential and the quickest path — there's no app to configure. You need to be a super admin (or have Developer tools access).

1. Open Service Keys and create one

In HubSpot, go to Development → Keys → Service keys (also reachable under Settings → Integrations → Service Keys), then click Create service key.

The HubSpot Service Keys page with the "Create service key" button

2. Name it and add the five read scopes

Give it a name you'll recognize, like "Discera — read-only". Click Add new scope, check the five read scopes listed above, then click Create (top right) and confirm.

The Create Service Key form with a name filled in and the five read scopes selected

3. Copy the key

On the key's detail page, click Show, then Copy. You can re-reveal or Rotate the key here anytime — no need to save it once and forever like a private-app token.

The Service Key detail page showing the pat- key with Show, Copy, and Rotate

Then skip to Paste it into Discera below.

Option B — Private app (also works)

Use this if your account doesn't offer Service Keys yet. HubSpot recently renamed private apps to Legacy Apps, but the token they generate is the same pat-… value Discera needs.

1. Find Private Apps (now "Legacy Apps")

Sign in as a super admin, then go to Settings (the gear icon) → IntegrationsPrivate Apps. HubSpot has consolidated private apps into a new Legacy Apps page, so you'll land on a "Your private apps have moved" notice — click Go to Legacy Apps.

The HubSpot Private Apps page showing "Your private apps have moved" with a "Go to Legacy Apps" button

On the Legacy Apps page, click Create a legacy app, choose Private ("for one account"), and acknowledge the notice to continue.

2. Name the app

On the Basic Info tab, give it a name you'll recognize, like "Discera — read-only".

The private app Basic Info tab with the app named "Discera — read-only"

3. Grant the five read-only scopes

Open the Scopes tab and check the same five read scopes listed above.

The Scopes tab with the five read-only CRM scopes checked

Then click Create app in the top right and confirm.

4. Copy the access token

HubSpot shows the generated access token. Click Show token, then Copy.

The private app Auth tab showing the generated access token with the Copy button

Paste it into Discera

In Discera, open /settings, find the HubSpot card under Integrations, and choose the private app token option. Paste your token there — a Service Key goes in the same field (both are pat-… bearer tokens) — and click Save. Discera validates it against HubSpot's API and runs discovery on your portal so your deal properties are ready to filter on.

Rotating or replacing the token

Rotate the Service Key (or regenerate the private-app token) in HubSpot, then paste the new value into the same Discera card. Revoke the old one in HubSpot once you've confirmed the new one works. Reports, schedules, and the discovery cache all survive rotation.

Prefer a one-click connection?

If you'd rather not manage a token at all, use the OAuth flow instead — see How do I connect HubSpot to Discera via OAuth?.

§ Common questions

Frequently asked.

Service Key or private app — which should I use?

Either works — both give Discera a read-only bearer token that starts pat-. A Service Key is HubSpot's newer, simpler credential (recommended); a private app (now called a legacy app) works on every account today. Pick whichever your HubSpot offers.

Where do I create a Service Key?

As a super admin (or with Developer tools access), go to Development, then Keys, then Service keys, and click Create service key. Name it, add the five read scopes, create it, then click Show and Copy on the key's detail page.

Which scopes do I need to grant?

Five read-only scopes: read deals, read deal schema (which covers pipelines and stages), read companies, read contacts, and read owners. Discera never needs write scopes.

How does Discera store the token?

The token is encrypted at rest with a symmetric key held in Google Secret Manager. Only the analysis worker decrypts it at request time. A read of the database alone does not expose the token.

Can I rotate the token later?

Yes. Rotate the Service Key (or regenerate the private-app token) in HubSpot and paste the new value into the same Discera card. The new credential overwrites the old one; reports, schedules, and the discovery cache all persist across rotations.