> ## Documentation Index
> Fetch the complete documentation index at: https://docs.samsearch.co/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot Setup

> Sync pursuits and contacts between SamSearch and HubSpot

<Tip>
  Connect HubSpot to automatically sync your pursuits as Deals and your contacts as Companies — no manual data entry between SamSearch and your CRM.
</Tip>

<Warning>
  This is a **shared, org-wide connection**, and connecting or disconnecting it requires the **owner** or **admin** role on your SamSearch account. You must also have permission to authorize third-party app connections in your HubSpot account — if you're not a HubSpot admin, ask one to approve the connection.
</Warning>

<Frame>
  <img src="https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=85865d328593826242821ce96e4bc5df" alt="HubSpot integration card in Account > Integrations showing the Connect HubSpot button" style={{ maxWidth: '100%', height: 'auto' }} data-og-width="423" width="423" data-og-height="231" height="231" data-path="images/integrations/hubspot-integration-card.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=280&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=9987cc9cd2f413538706bd17133d0712 280w, https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=560&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=cff8073c7d39d7c26aa945b806c67834 560w, https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=840&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=ea9e79536135c6b8e8227b6f5f12c557 840w, https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=1100&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=1a90e18c772add0d825a2231e1b8ec16 1100w, https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=1650&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=7d3489a706ec97c9fa929f19e53343a2 1650w, https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-integration-card.png?w=2500&fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=3c2448747dcfd9bfbe3d6d74ea5edaf0 2500w" />
</Frame>

## What this integration does

* Pursuits sync as a **Deal** — `dealname` from the pursuit title, `dealstage` from your stage mapping (set in the **Map your pipeline stages** step below), `closedate` from the pursuit's due date, and `amount` from the opportunity's estimated value
* The Deal description combines the opportunity's description with an Agency / Notice ID / Type summary
* Two custom properties are set on the Deal: a link back to the pursuit in SamSearch, and the AI Profile it came from
* Contacts sync to HubSpot as **Companies**
* Syncing is **real-time** — it fires the moment you save a pursuit or change its status, not on a delay
* Before creating a Deal, SamSearch searches for an existing one with the same name and updates it instead of creating a duplicate

***

## Part 1 — Connect HubSpot

<Steps>
  <Step title="Open Integrations">
    In the left sidebar, scroll to **Account** and click **Integrations**.
  </Step>

  <Step title="Find the HubSpot card">
    Scroll to the **CRM** section. The **HubSpot** card shows your current connection status.
  </Step>

  <Step title="Click Connect HubSpot">
    Click **Connect** on the HubSpot card. Because this is a shared, org-wide connection, a confirmation dialog explains that every team member will share it and see synced data — SamSearch recommends using a dedicated work account (e.g. `ops@yourcompany.com`) rather than a personal one. Click **I understand connect HubSpot** to proceed.
  </Step>

  <Step title="Choose your HubSpot account">
    A popup opens showing the HubSpot accounts you have access to. Select the one you want to connect and click **Choose Account**.

    <Frame>
      <img src="https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-oauth-account-picker.png?fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=647c91c981f3b8cf767d6ed2cb12b986" alt="HubSpot popup listing the HubSpot account to connect, with a Choose Account button" style={{ maxWidth: '100%', height: 'auto' }} width="607" height="705" data-path="images/integrations/hubspot-oauth-account-picker.png" />
    </Frame>
  </Step>

  <Step title="Review and grant permissions">
    HubSpot lists exactly what SamSearch is requesting access to — companies, contacts, and deals. Review the list and click **Connect app**.

    <Frame>
      <img src="https://mintcdn.com/samsearch/hWjAYVbyKbUw6hpK/images/integrations/hubspot-oauth-permissions.png?fit=max&auto=format&n=hWjAYVbyKbUw6hpK&q=85&s=688d68ab20b65b307085aa6d0d5fe059" alt="HubSpot permissions screen listing the access SamSearch is requesting, with a Connect app button" style={{ maxWidth: '100%', height: 'auto' }} width="764" height="916" data-path="images/integrations/hubspot-oauth-permissions.png" />
    </Frame>
  </Step>

  <Step title="Accept the unverified app warning">
    Because SamSearch's HubSpot app hasn't gone through HubSpot's app marketplace review, HubSpot shows an "unverified app" warning. Type **I accept the risk** in the field and click **Connect** to proceed.

    <Frame>
      <img src="https://mintcdn.com/samsearch/x_gq5bmSQnJ-qJ5g/images/integrations/hubspot-oauth-unverified-warning.png?fit=max&auto=format&n=x_gq5bmSQnJ-qJ5g&q=85&s=37d2484a03d35268807d3169e3af42f2" alt="HubSpot unverified app warning requiring the user to type 'I accept the risk' before clicking Connect" style={{ maxWidth: '100%', height: 'auto' }} width="480" height="615" data-path="images/integrations/hubspot-oauth-unverified-warning.png" />
    </Frame>
  </Step>

  <Step title="Map your pipeline stages">
    The popup closes, the HubSpot card shows **Connected**, and the **Configure** panel opens automatically. Map each SamSearch pipeline column to a HubSpot Deal pipeline stage, then click **Save**. If no stages appear, click **Refresh** above the list.
  </Step>
</Steps>

<Note>
  On first connect, SamSearch copies every existing pursuit into HubSpot as a Deal — you'll see the card in a **Syncing** state with a live counter until it finishes. See [Connection states](/features/integrations#connection-states) for what each card state means, including what an expired connection looks like.
</Note>

***

## Troubleshooting

**Deals aren't showing up in HubSpot**

* Confirm the integration status is **Connected** on the Integrations page — an expired or revoked token shows as an **Error** state with a **Reconnect** link.
* Confirm you completed the stage-mapping step in Configure; syncing needs a mapped stage for the pursuit's current column.
* Syncing fires on save or status change; editing unrelated fields won't trigger a new sync.

**I'm seeing duplicate deals**

* SamSearch matches by exact deal name before creating a new one. If a deal was created manually in HubSpot with a different name before you connected, it won't automatically merge with the synced deal — merge it manually in HubSpot.

**The OAuth popup closes without connecting**

* Make sure pop-ups aren't blocked for SamSearch in your browser.
* Confirm you have permission to authorize apps in your HubSpot portal.

**Still stuck?** Contact [support@samsearch.co](mailto:support@samsearch.co) with your SamSearch account email and your HubSpot portal name.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.