Skip to content

HubSpot

BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.

PortPilot replicates six HubSpot CRM objects with every property, including your custom properties, through HubSpot’s CRM Search API. After the first sync, only records modified since the last sync are read.

FeatureSupportedNotes
Incremental sync Yes Records modified since the last sync.
Captures deletes No Records deleted in the source stay in the destination.
Custom fields Yes Every property, including custom ones, is a column.
Table selection Yes Choose which tables to sync.
New columns added automatically Yes Columns that appear in the source are added to the destination table.
Re-sync Yes A full refresh re-reads every selected table.
  1. Create a private app in HubSpot (Settings → Integrations → Private Apps) and give it these scopes:
    • crm.objects.contacts.read
    • crm.objects.companies.read
    • crm.objects.deals.read
    • tickets
    • e-commerce (line items and products)
    • crm.schemas.contacts.read, crm.schemas.companies.read, crm.schemas.deals.read (property definitions)
  2. Copy the access token from the private app’s Auth tab.

In the app, go to Connectors → New connector → HubSpot and click Test connection after filling in:

Field Required Default Description
access_token Yes — Private app access token. Stored write-only in the data plane’s secret store.
start_date No all history YYYY-MM-DD. The first sync reads only records modified on or after this date.

How the tables relate. Each arrow points from a column to the table it references. Only key, reference and cursor columns are shown; the data dictionary below has the rest.

erDiagram
    products ||--o{ line_items : "hs_product_id"
    contacts {
        string id PK
        string lastmodifieddate "cursor"
    }
    companies {
        string id PK
        string hs_lastmodifieddate "cursor"
    }
    deals {
        string id PK
        string hs_lastmodifieddate "cursor"
    }
    tickets {
        string id PK
        string hs_lastmodifieddate "cursor"
    }
    line_items {
        string id PK
        string hs_lastmodifieddate "cursor"
        string hs_product_id FK
    }
    products {
        string id PK
        string hs_lastmodifieddate "cursor"
    }

contacts

One row per contact.

Primary key
id
Replication
Incremental, on lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
lastmodifieddatecursorstringWhen the contact last changed (ISO 8601 text).
emailstringPrimary email.
firstnamestringFirst name.
lastnamestringLast name.
lifecyclestagestringLifecycle stage, e.g. lead, customer.
hubspot_owner_idstringID of the HubSpot user who owns the record.

Main columns only. Other fields the source returns also land as columns.

companies

One row per company.

Primary key
id
Replication
Incremental, on hs_lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
hs_lastmodifieddatecursorstringWhen the record last changed (ISO 8601 text).
namestringCompany name.
domainstringWebsite domain.
industrystringIndustry.
hubspot_owner_idstringID of the HubSpot user who owns the record.

Main columns only. Other fields the source returns also land as columns.

deals

One row per deal.

Primary key
id
Replication
Incremental, on hs_lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
hs_lastmodifieddatecursorstringWhen the record last changed (ISO 8601 text).
dealnamestringDeal name.
amountstringDeal amount (numeric text).
dealstagestringInternal ID of the deal stage.
pipelinestringInternal ID of the pipeline.
closedatestringExpected or actual close date.
hubspot_owner_idstringID of the HubSpot user who owns the record.

Main columns only. Other fields the source returns also land as columns.

tickets

One row per support ticket.

Primary key
id
Replication
Incremental, on hs_lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
hs_lastmodifieddatecursorstringWhen the record last changed (ISO 8601 text).
subjectstringTicket subject.
contentstringTicket description.
hs_pipelinestringInternal ID of the pipeline.
hs_pipeline_stagestringInternal ID of the pipeline stage.
hs_ticket_prioritystringPriority, e.g. HIGH.
hubspot_owner_idstringID of the HubSpot user who owns the record.

Main columns only. Other fields the source returns also land as columns.

line_items

One row per line item on a deal or quote.

Primary key
id
Replication
Incremental, on hs_lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
hs_lastmodifieddatecursorstringWhen the record last changed (ISO 8601 text).
namestringLine item name.
quantitystringQuantity (numeric text).
pricestringUnit price (numeric text).
amountstringTotal amount (numeric text).
hs_product_id→ products.idstringID of the product in the product library.

Main columns only. Other fields the source returns also land as columns.

products

One row per product in the product library.

Primary key
id
Replication
Incremental, on hs_lastmodifieddate
ColumnTypeDescription
idPKstringHubSpot record ID.
createdatestringWhen the record was created (ISO 8601 text).
hs_lastmodifieddatecursorstringWhen the record last changed (ISO 8601 text).
namestringProduct name.
pricestringUnit price (numeric text).
hs_skustringSKU.
descriptionstringDescription.

Main columns only. Other fields the source returns also land as columns.

  • HubSpot returns every property value as a string, so numbers and dates arrive as text.
  • New properties, including custom ones, are added as columns on the next sync.
  • Associations between objects (a contact’s companies, a deal’s contacts) aren’t replicated yet, so the diagram shows only the product reference on line items.
  • First sync: every record of each object (from start_date, if set).
  • Later syncs: records modified at or after the newest modification time from the previous sync, upserted on id. Records at the boundary are re-read and de-duplicated.
  • Large objects: HubSpot’s search returns at most 10,000 results per query. PortPilot reads past that by restarting from the last modification time it has read, so objects of any size sync in full.
  • Deletes and archives aren’t replicated. Records deleted or archived in HubSpot stay in the destination.
  • Rate limit is shared. HubSpot allows 5 search requests per second per account, shared with your other integrations. PortPilot waits briefly when limited; if it lasts, the run fails as rate_limited and retries on the next schedule.
  • Bulk imports with identical timestamps. If more than 10,000 records share exactly the same modification time (common after a bulk import or a workflow touching every record), the sync fails with an explicit error rather than skip records. Contact us if you hit it.
  • Everything is text. Cast numeric and date properties in your warehouse.
  • A missing scope fails that object with a 403. Add the scope to the private app; the token stays the same.