Matthew Jeter M. Ziemba

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.

For
A construction company
When
July 2026 to now
Status
Active since August 2026
Role
Sole author of the audit, the API discovery and the scope
Systems
HubSpot and JobTread

Data paths and guards

HubSpot portalThe contractorRead-only clientsJobTread APIHubSpot portalThe contractorRead-only clientsJobTread APIAudit and field mapWorkflows, properties, recordsSchema by introspectionFindings and fieldsAudit and scopeWrites blocked in codeFirst-release rows verified HubSpot portalThe contractorClientsJobTread APIHubSpot portalThe contractorClientsJobTread APIAuditabcd
  1. HubSpot portal: 279 workflows and 4,102 deals, read for the audit.
  2. The contractor: Received the audit report and the scope.
  3. Read-only clients: Two discovery clients in Node.js, run locally, that refuse any write.
  4. Audit and field map: A report of 10 deep-dive sections, and 138 candidate fields assessed.
  5. JobTread API: Undocumented, with its own schema: 189 types and 236 root fields.
  6. 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.
  7. From JobTread API to Read-only clients: Schema by introspection. The full type system: 189 types and 236 root fields. Discovery.
  8. 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.
  9. From Audit and field map to The contractor: Audit and scope. The audit report and the scope for a first release. Delivery.
  10. 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.
  11. 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

Data paths
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
  1. 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.

  2. 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
  3. 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
  4. 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

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

  1. 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
  1. 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

  2. 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