---
title: "HubSpot"
description: "Keep customers in sync with a HubSpot portal."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/hubspot"
---
# HubSpot

> Keep customers in sync with a HubSpot portal.

Keep customers in sync with a HubSpot portal. A business connects once through HubSpot's install screen; after that every change is pushed within a minute while autosync is on, and a full sync runs every 15 minutes. Each run and every record it touched is on the sync log.

## Endpoints

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/get-the-business-s-hubspot-connection-and-sync-h">
        <code>
          /v1/businesses/{biz}/integrations/hubspot
        </code>
      </a>
    </td>
    
    <td>
      Get the business's HubSpot connection and sync health
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/change-sync-preferences">
        <code>
          /v1/businesses/{biz}/integrations/hubspot
        </code>
      </a>
    </td>
    
    <td>
      Change sync preferences
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        DELETE
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/disconnect-hubspot">
        <code>
          /v1/businesses/{biz}/integrations/hubspot
        </code>
      </a>
    </td>
    
    <td>
      Disconnect HubSpot
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-open-sync-conflicts">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/conflicts
        </code>
      </a>
    </td>
    
    <td>
      List open sync conflicts, oldest first
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/resolve-a-sync-conflict">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/conflicts/{id}/resolve
        </code>
      </a>
    </td>
    
    <td>
      Resolve a sync conflict
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/finish-a-hubspot-install-with-the-authorization">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/connect
        </code>
      </a>
    </td>
    
    <td>
      Finish a HubSpot install with the authorization code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-the-fields-a-mapping-may-name-on-our-side">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/local_fields
        </code>
      </a>
    </td>
    
    <td>
      List the fields a mapping may name on our side
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-the-connected-portal-s-custom-objects">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/objects
        </code>
      </a>
    </td>
    
    <td>
      List the connected portal's custom objects
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-the-connected-portal-s-deal-pipelines-and-s">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/pipelines
        </code>
      </a>
    </td>
    
    <td>
      List the connected portal's deal pipelines and stages
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-the-connected-portal-s-properties-for-an-ob">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/properties/{object}
        </code>
      </a>
    </td>
    
    <td>
      List the connected portal's properties for an object
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/start-the-first-sync">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/start
        </code>
      </a>
    </td>
    
    <td>
      Start the first sync
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/sync-now">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/sync
        </code>
      </a>
    </td>
    
    <td>
      Sync now
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/list-sync-runs">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/sync_runs
        </code>
      </a>
    </td>
    
    <td>
      List sync runs, newest first
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/get-a-sync-run-with-its-log">
        <code>
          /v1/businesses/{biz}/integrations/hubspot/sync_runs/{run}
        </code>
      </a>
    </td>
    
    <td>
      Get a sync run with its log
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/workflow-action">
        <code>
          /v1/hubspot/app/actions/create-subscription
        </code>
      </a>
    </td>
    
    <td>
      Workflow action: create a subscription from a deal
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/workflow-action-2">
        <code>
          /v1/hubspot/app/actions/edit-subscription
        </code>
      </a>
    </td>
    
    <td>
      Workflow action: edit the deal's subscription
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/price-options-for-the-workflow-actions-plan-fiel">
        <code>
          /v1/hubspot/app/actions/price-options
        </code>
      </a>
    </td>
    
    <td>
      Price options for the workflow actions' plan field
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/billing-card-data-for-a-hubspot-record">
        <code>
          /v1/hubspot/app/card
        </code>
      </a>
    </td>
    
    <td>
      Billing card data for a HubSpot record
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/hubspot/create-a-subscription-from-the-hubspot-record-ca">
        <code>
          /v1/hubspot/app/subscriptions
        </code>
      </a>
    </td>
    
    <td>
      Create a subscription from the HubSpot record card
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
