HubSpot
Read a HubSpot account's CRM through SegmentStream's HubSpot app, or your own. One connection per HubSpot account; tokens last 30 minutes and the platform refreshes them.
What the connection reaches
- Contacts with their properties: list, search and batch reads
- CRM exports for bulk loads
- Read only: writes are rejected
- Status
- Built into the pipeline SDK
- Connection class
- HubSpotConnection
- Credential
- HubSpot user who can install apps in the account
- In use
- In production at an AI video company, where HubSpot contacts feed lead scoring.
Connect HubSpot
Three steps, the same for every connection. The credential goes to the platform, never into the repository or pipeline code.
- 1
Declare it in connections/connections.py
connections/connections.py from segmentstream.connections import HubSpotConnection connections = ( HubSpotConnection(key="hubspot"),) - 2
Deploy
$ segmentstream deploy - 3
Connect
Open the connection in the console and sign in with a HubSpot user who can install apps, or authorise it from the terminal. Tokens are refreshed by the platform; pipeline code never sees them.
$ segmentstream connection authorize hubspot --open
Use it
Code asks for the connection by its key. The platform adds the credential on the way out.
import segmentstream as s with s.get_connection("hubspot").get_http_client() as client: response = client.post("/contacts/search", json={"limit": 200}) response.raise_for_status()Or ask your agent
“Connect HubSpot and load contacts changed since yesterday, with their properties.”
Part of these solutions
More in CRM & sales
Want HubSpot set up for you?
Our forward-deployed engineers build one solution on your data, in your own workspace, as code you own. Tell us what you run today and what you want; your note goes straight to our founder.
- One solution, on your data, in your own workspace
- First version live in two weeks
- Parity proven before anything is switched off
- Fixed scope and price, credited to your contract if you continue
Not ready for a pilot? Send the form anyway with your question. An engineer will reply, not a sales rep.
How the pilot worksConnect what your company runs.
Our engineers build the first version on your data in two weeks, at a fixed price.
Or join the waitlist for self-serve:
Self-serve opens to the waitlist first.