Integrations

HubSpot

A HubSpot integration connects a HubSpot portal to Mobius with HubSpot OAuth. It lets agents search the CRM and update records, and Mobius record HubSpot webhook events.

Use HubSpot when an agent needs current CRM context, when it should create or update records, or when Mobius should record a CRM change. Mobius keeps one HubSpot portal connection per organization and matches inbound webhook events to that portal.

Capability map

CapabilityValue
Provider IDhubspot
Auth kindoauth2_user
Connect flowHubSpot OAuth user grant
ActionsYes
EventsYes
Webhook deliveryYes, through HubSpot app webhook subscriptions
Event samplesNo
Live statusNo

Connect HubSpot

SurfaceSupport
AppOpen Library > Integrations, choose HubSpot, then continue through HubSpot OAuth and pick the portal to authorize.
CLIThe mobius CLI does not connect HubSpot integrations yet. Use the app or API.
APICall POST /v1/integrations/providers/hubspot/connect with an empty JSON body, then redirect the user to the returned HubSpot OAuth URL.

The connect call returns a redirect_url. Send the user there to grant access, and HubSpot redirects back to Mobius to finish the connection. The default grant requests read and write scopes for contacts, companies, and deals:

oauth
crm.objects.contacts.read
crm.objects.contacts.write
crm.objects.companies.read
crm.objects.companies.write
crm.objects.deals.read
crm.objects.deals.write

If the OAuth button is unavailable, HubSpot is not enabled for your Mobius organization. Ask your organization administrator or Mobius support to check it.

Actions

hubspot.crm.search
hubspot.crm.get
hubspot.crm.create
hubspot.crm.update
hubspot.contact.upsert

Each CRM action takes an object_type of contacts, companies, or deals. Use hubspot.crm.search for free-text or filtered discovery, then the get, create, and update actions once the agent has stable record IDs.

Search by query and return selected properties:

{
  "object_type": "contacts",
  "query": "ada@example.com",
  "properties": ["email", "firstname", "lastname", "company"],
  "limit": 10
}

Resolve a record by a unique property instead of its ID with id_property:

{
  "object_type": "contacts",
  "record_id": "ada@example.com",
  "id_property": "email",
  "properties": ["email", "lifecyclestage"]
}

Use hubspot.contact.upsert when an agent should create a contact or update the existing one keyed on email. It uses email as the identifier, so set the rest of the contact under properties and leave email out of that object:

{
  "email": "ada@example.com",
  "properties": {
    "firstname": "Ada",
    "lastname": "Lovelace",
    "company": "Acme"
  }
}

hubspot.crm.create, hubspot.crm.update, and hubspot.contact.upsert mutate upstream records, so a retry can repeat the write. Prefer upsert and stable id_property lookups for idempotent record writes, or add an interaction before a destructive change. HubSpot caps most CRM object requests at 100 records per call.

Events

HubSpot webhook callbacks become provider events with the hubspot. prefix. Mobius emits seven event suffixes for each of the three CRM objects:

hubspot.contact.created
hubspot.contact.deleted
hubspot.contact.property_changed
hubspot.contact.merged
hubspot.contact.restored
hubspot.contact.privacy_deleted
hubspot.contact.association_changed
 
hubspot.company.created
hubspot.company.deleted
hubspot.company.property_changed
hubspot.company.merged
hubspot.company.restored
hubspot.company.privacy_deleted
hubspot.company.association_changed
 
hubspot.deal.created
hubspot.deal.deleted
hubspot.deal.property_changed
hubspot.deal.merged
hubspot.deal.restored
hubspot.deal.privacy_deleted
hubspot.deal.association_changed

Mobius maps HubSpot subscription types to these names: contact.creation becomes hubspot.contact.created, deal.propertyChange becomes hubspot.deal.property_changed, and so on. Each event payload includes the HubSpot object ID, portal ID, subscription type, occurrence time, the changed property name and value for property_changed events, and the original HubSpot event under raw.

Use a property_changed event to watch a specific field update, and read property_name to tell one from another. Match a trailing wildcard such as hubspot.contact.* only when every contact change is worth recording.

HubSpot webhook subscriptions are managed once for Mobius, not separately for each connected portal. After you connect a portal, its supported events should appear as source events. If actions work but events never arrive, send the portal ID and integration status to your organization administrator or Mobius support.

Mobius verifies each callback, matches it to the connected portal, and deduplicates redelivered HubSpot events, so a redelivery is recorded once.

Next