Portal audit and scoping
A read-only audit of a large HubSpot portal, then the scope for a JobTread integration: an undocumented API mapped and 138 candidate fields cut to a 29-field first release.
Data paths and guards
- HubSpot portal: 279 workflows and 4,102 deals, read for the audit.
- The contractor: Received the audit report and the scope.
- Read-only clients: Two discovery clients in Node.js, run locally, that refuse any write.
- Audit and field map: A report of 10 deep-dive sections, and 138 candidate fields assessed.
- JobTread API: Undocumented, with its own schema: 189 types and 236 root fields.
- From HubSpot portal to Read-only clients: Workflows, properties, records. Workflows, properties and records for the audit, through reads and searches only. Each audit pull.
- From JobTread API to Read-only clients: Schema by introspection. The full type system: 189 types and 236 root fields. Discovery.
- From Read-only clients to Audit and field map: Findings and fields. Audit sections, the risks named and the 138-row field map. Each discovery pass.
- From Audit and field map to The contractor: Audit and scope. The audit report and the scope for a first release. Delivery.
- On Read-only clients: Writes blocked in code. The JobTread client refuses any operation the schema marks as a write; the HubSpot client allows only reads and search.
- On Findings and fields: First-release rows verified. Each first-release row of the field map was checked against evidence by an adversarial pass before it was kept.
- Built by me
- Platforms I connect to
- Guards
- Active
| Workflows, properties, records Workflows, properties and records for the audit, through reads and searches only |
|---|
| Schema by introspection The full type system: 189 types and 236 root fields |
| Findings and fields Audit sections, the risks named and the 138-row field map |
| Audit and scope The audit report and the scope for a first release |
-
Systems
The contractor sells in HubSpot and wanted JobTread connected to it. Two discovery clients in Node.js, run locally, read both systems, and everything found went into an audit report and a field map for the contractor.
-
Data paths
The HubSpot client pulled workflows, properties and records for the audit. JobTread’s API had no public documentation, so its own schema introspection was used to list 189 types and 236 root fields.
- a Workflows, properties, records
- b Schema by introspection
- c Findings and fields
- d Audit and scope
-
Guards
The JobTread client refuses any operation the schema marks as a write, and the HubSpot client allows only reads and search. Each first-release row of the field map was checked against evidence.
- Writes blocked in code on Clients
- First-release rows verified on c
-
Result
138 candidate fields were assessed down to 29 for a first release, with a design that polls JobTread’s event feed. Neither live system received a single write.
What I built
- A read-only audit of the HubSpot portal: a master report and 10 deep-dive sections.
- Discovery of JobTread’s undocumented API through its own schema introspection: 189 types and 236 root fields.
- A field map of 138 candidate fields: 29 for a first release, 40 for a second phase and 69 rejected.
- A change-data-capture design that polls JobTread’s event feed, with webhooks only as a nudge.
- Discovery clients that cannot write: one refuses any operation the schema marks as a write, the other allows only reads and search.
What the guards protect against
| The risk | The guard |
|---|---|
| Discovery changes a live system. | Writes blocked in code The JobTread client refuses any operation the schema marks as a write; the HubSpot client allows only reads and search. |
| A field is mapped on a wrong guess about the API. | First-release rows verified Each first-release row of the field map was checked against evidence by an adversarial pass before it was kept. |
Decisions
-
Design the sync around the event feed, not webhooks
- Chose
- A design that polls JobTread’s event feed for changes, with webhooks used only to prompt an earlier poll.
- Instead of
- A sync driven by JobTread’s webhooks. They arrive unsigned and are never retried, so a lost call would mean a lost change.
- Trade-off
- Changes would arrive on the poll’s schedule rather than at once.
Results
- 0 writes to either live system during discovery.
- 279 workflows (218 enabled), 4,102 deals and 694 custom deal properties characterized in the audit.
- 4,069 contacts, 5,991 tickets and 13,868 bills characterized alongside the deals.
Facts
- Found five API facts that break the obvious design, such as job locations that cannot change
- The full JobTread schema, dumped by introspection, came to 2.8 MB
- Ruled out an assignee fallback that would add billable seats to the contractor’s JobTread account for good
Related builds
-
Two-way ERP sync
Date: Aug 2026
Fact: 11,598 deals linked to the ERP
Client: For a commercial roofing contractor
Systems: Dataforma
Status: In production
-
Cross-portal data model
Date: Dec 2025
Fact: 32,846 properties scanned, 7 sales-rep patterns found
Client: For 18 contractor HubSpot portals
Systems: HubSpot
Status: In production