Skip to content

HubSpot

Read HubSpot CRM contacts, companies, deals and tickets.

Connect it in the console under Integrations > Connectors. See Connectors for how connectors work and who can use them.

In HubSpot, create a private app (Settings > Integrations > Private Apps) with the read scopes you need, for example crm.objects.contacts.read, crm.objects.companies.read, crm.objects.deals.read and tickets. Copy its access token.

SettingNotes
Private app access tokenRequiredStored encrypted and never shown again.
TableFiltersReturns
contactsproperties, afterCRM contacts (pick properties with a comma-separated list).
companiesproperties, afterCRM companies (pick properties with a comma-separated list).
dealsproperties, afterCRM deals (pick properties with a comma-separated list).
ticketsproperties, afterCRM tickets (pick properties with a comma-separated list).
Terminal window
curl -s -X POST "https://api.vaif.studio/database/connector/$VAIF_PROJECT_ID/query" \
-H "Authorization: Bearer $VAIF_TOKEN" -H "Content-Type: application/json" \
-d '{"wrapperId":"hubspot_fdw","table":"deals","filters":{"properties":"dealname,amount,dealstage,closedate"},"limit":50}'

$VAIF_TOKEN is a console access token. See Connectors for the routes.

Give the private app read scopes only. Without properties, each record comes back with a default set of properties; name the ones you want with their internal names, separated by commas.